From ef3108113e3278e45703d70c5ac95d96504ba78e Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Mon, 14 Apr 2025 22:33:59 +0100 Subject: [PATCH] Update documentation to ensure README.md changelog is maintained --- .ai-assistant.md | 4 +++- .ai-workflows/release-process.md | 26 +++++++++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.ai-assistant.md b/.ai-assistant.md index 87805e5..13dbcae 100644 --- a/.ai-assistant.md +++ b/.ai-assistant.md @@ -23,13 +23,15 @@ Detailed workflow documentation is available in the `.ai-workflows/` directory: ## Version Management We follow [Semantic Versioning](https://semver.org/): -- **MAJOR.MINOR.PATCH** (e.g., 2.2.1) +- **MAJOR.MINOR.PATCH** (e.g., 2.2.2) - **MAJOR**: Breaking changes - **MINOR**: New features, non-breaking - **PATCH**: Bug fixes, non-breaking When updating version numbers, see **@.ai-workflows/release-process.md** for the complete checklist. +**IMPORTANT**: Always keep the changelogs in README.md, readme.txt, and CHANGELOG.md in sync to avoid confusion. All three files must be updated with the same changes for each release. + ## Git Workflow ### Branch Naming Convention diff --git a/.ai-workflows/release-process.md b/.ai-workflows/release-process.md index ec7b7d4..e6f871f 100644 --- a/.ai-workflows/release-process.md +++ b/.ai-workflows/release-process.md @@ -90,7 +90,24 @@ All notable changes to this project should be documented both here and in the ma Note: Use the `####` heading format for consistency with the existing CHANGELOG.md structure. -#### d. POT File (languages/wp-fix-plugin-does-not-exist-notices.pot) +#### d. README.md + +Update the Changelog section in the main README.md file to match the changes in readme.txt: + +```markdown +## Changelog + +### {MAJOR}.{MINOR}.{PATCH} +* Change 1 +* Change 2 +* Change 3 + +### {PREVIOUS_VERSION} +``` + +**IMPORTANT**: Always keep the changelogs in README.md, readme.txt, and CHANGELOG.md in sync to avoid confusion. + +#### e. POT File (languages/wp-fix-plugin-does-not-exist-notices.pot) Update the Project-Id-Version and POT-Creation-Date (IMPORTANT - don't forget this step!): @@ -101,7 +118,7 @@ Update the Project-Id-Version and POT-Creation-Date (IMPORTANT - don't forget th Note: Always use the current date for POT-Creation-Date in the format YYYY-MM-DD. -#### e. readme.txt +#### f. readme.txt Update the stable tag: @@ -142,10 +159,12 @@ Test the plugin thoroughly in your local WordPress environment: ### 4. Commit Changes ```bash -git add wp-fix-plugin-does-not-exist-notices.php CHANGELOG.md readme.txt admin/js/version-fix.js languages/wp-fix-plugin-does-not-exist-notices.pot +git add wp-fix-plugin-does-not-exist-notices.php CHANGELOG.md README.md readme.txt languages/wp-fix-plugin-does-not-exist-notices.pot git commit -m "Version {MAJOR}.{MINOR}.{PATCH} - Brief description of changes" ``` +Note: Make sure to include README.md in your commit to keep all changelog files in sync. + ### 5. Create a Tag ```bash @@ -195,6 +214,7 @@ The `--no-ff` flag creates a merge commit even if a fast-forward merge is possib - [ ] Verify that the plugin was deployed to WordPress.org (if applicable) - [ ] Test the plugin from the GitHub release ZIP to ensure it works correctly - [ ] Verify that Git Updater can detect and install the new version +- [ ] Confirm that all changelog files (README.md, readme.txt, and CHANGELOG.md) are in sync ## Testing Previous Versions