Repository navigation
ci(release-drafter): label each pull request once - #85
Merged
Merged
Conversation
A files rule marked every pull request touching Markdown as maintenance, so a docs PR was listed under two headings, and the fix/feat/docs title rules also fired on breaking (!) titles, which would list a breaking change twice. Every title rule now matches exactly one conventional-commit shape, release: titles are maintenance, and no rule is keyed on files. A test applies the rules to sample titles and pins one label per title.
✅ Code Quality Report
Quality Gates
🎉 All quality gates passed! This PR maintains high code quality standards. 📊 View detailed MFCQI breakdownRun |
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.
The drafter lists a pull request under every category whose label it carries, so two faults in the autolabeler duplicated entries in the v0.2.0 draft: a
files: '*.md'rule marked every docs PR as maintenance too, and the fix / feat / docs title rules also fired on breaking (!) titles. Every title rule now matches exactly one conventional-commit shape,release:titles count as maintenance, and no rule is keyed on changed files.tests/test_release_pipeline.pyapplies the rules to sample titles and pins exactly one label per title, and checks that every autolabel has a category.The merged PRs #68 to #84 were labelled by hand to match (the autolabeler only ran on #83), so the drafter resolves
v0.2.0on its next run on main.