-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Prevent override of changelog version #60203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Testing GuidelinesHi @jorgeatorres @woocommerce/flux, Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
📝 WalkthroughWalkthroughThe workflow file Changes
Sequence Diagram(s)sequenceDiagram
participant Workflow
participant ValidateVersion
participant ValidateBranchVersion
participant GenerateChangelog
Workflow->>ValidateVersion: Validate input version
Workflow->>ValidateBranchVersion: Get current_version from branch
ValidateBranchVersion-->>Workflow: Output current_version
Workflow->>GenerateChangelog: Use current_version for changelog generation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5-10 minutes Possibly related PRs
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings
📚 Learning: in woocommerce core repository, changelog entries for all prs live in `plugins/woocommerce/changelog...
Applied to files:
📚 Learning: in github actions workflows, when reviewing steps that access event data like `github.event.pull_req...
Applied to files:
📚 Learning: ensure that the correct version of node is installed and being used by running 'nvm install' in the ...
Applied to files:
📚 Learning: applies to .github/pull_request_template.md : the changelog section in the pr description must keep ...
Applied to files:
🔇 Additional comments (2)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tested well. Thank you @albarin!
Submission Review Guidelines:
Changes proposed in this Pull Request:
This PR prevents overwriting the version number in
readme.txt
when running theRelease: Compile changelog
workflow.Closes #59854
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
woocommerce/woocommerce
repo with all branches into your GH account.59854/keep-changelog-version
and merge it (to get these changes intotrunk
).Release: Bump version number
workflow withrelease/10.0
andstable
.Release: Compile changelog
with version10.0
and fill theRelease date in YYYY-MM-DD format
input with a valid date.Testing that has already taken place:
Tested the steps on my fork https://github.com/albarin/woocommerce/pull/24/files
Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment