Repository navigation
docs: keep a bug fix to its own scope - #17273
Closed
jdaugherty wants to merge 1 commit into
Closed
jdaugherty wants to merge 1 commit into
jdaugherty wants to merge 1 commit into
Conversation
A bug-fix pull request changes only what it claims to fix, the regressions it causes against its base branch, and its own new code. A review finding that behaves the same on the base branch gets an issue or a pull request of its own instead of a change to the pull request under review, does not block approval, and is not raised again once answered with the base-branch result. The rule covers pull requests that fix, or set out to fix, a bug or an issue; pull requests that add features or other new functionality are not covered. Adds the rule to CONTRIBUTING.md under the change review process, and to AGENTS.md as critical rule 15 with a bug-fix scope section.
Contributor
Author
|
Moved to #17274, with the branch on apache/grails-core. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a rule that keeps a bug fix to its own scope, proposed on dev@ in the thread "[DISCUSS] Keep a bug-fix pull request to the bug it fixes". It should merge only once that thread has settled.
What the rule says
Where
CONTRIBUTING.md: a new subsection, "Keeping a Bug Fix to Its Scope", at the end of "Change Review Process".AGENTS.md(whichCLAUDE.mdlinks to): critical rule 15 and a "Bug-fix scope" section under "Pull Request Guidelines", which also tells agents to sort each review finding before changing code.Why: a bug fix that takes on behaviour already present on its base branch collects new review findings against the code added for it, and stays open. The dev@ thread has the examples.
It targets 7.0.x so that every release branch gets the rule through the usual merge-up.
Contributor Checklist
Please review the following checklist before submitting your pull request. Pull requests that do not meet these requirements may be closed without review.
Issue and Scope
7.0.x,7.2.x,8.0.x): Bug fixes only, released as the next patch version. No new features or API changes. A bug fix targets the oldest release branch that has the bug and still gets releases, and is merged up.8.1.xbefore 8.1.0): New features are welcome, but breaking existing APIs must be avoided.9.0.xbefore 9.0.0): Reserved for major changes. Breaking API changes are permitted.grails-skills/upgrade/skills/grails-upgrade/SKILL.md) has the same entry.Code Quality
./gradlew build --rerun-tasks../gradlew codeStyleand resolved any violations. See Code Style for details. (Documentation only.)Licensing and Attribution
Documentation