Skip to content

Commit af62f79

Browse files
authored
Prioritize "bug" label for changelog sections (#16433)
## Summary This PR updates the ordering of changelog sections to prioritize `bug` label such that any PRs that has that label is categorized in "Bug fixes" section in when generating the changelog irrespective of any other labels present on the PR. I think this works because I've seen PRs with both `server` and `bug` in the "Server" section instead of the "Bug fixes" section. For example, #16262 in https://github.com/astral-sh/ruff/releases/tag/0.9.7. On that note, this also changes the ordering such that any PR with both `server` and `bug` labels are in the "Bug fixes" section instead of the "Server" section. This is in line with how "Formatter" is done. I think it makes sense to instead prefix the entries with "Formatter:" and "Server:" if they're bug fixes. But, I'm happy to change this such that any PRs with `formatter` and `server` labels are always in their own section irrespective of other labels.
1 parent 0ced8d0 commit af62f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ changelog_ignore_labels = ["internal", "ci", "red-knot", "testing"]
113113

114114
changelog_sections.breaking = "Breaking changes"
115115
changelog_sections.preview = "Preview features"
116+
changelog_sections.bug = "Bug fixes"
116117
changelog_sections.rule = "Rule changes"
117118
changelog_sections.diagnostics = "Rule changes"
118119
changelog_sections.docstring = "Rule changes"
119120
changelog_sections.fixes = "Rule changes"
120-
changelog_sections.formatter = "Formatter"
121121
changelog_sections.isort = "Rule changes"
122122
changelog_sections.performance = "Performance"
123+
changelog_sections.formatter = "Formatter"
123124
changelog_sections.server = "Server"
124125
changelog_sections.cli = "CLI"
125126
changelog_sections.configuration = "Configuration"
126-
changelog_sections.bug = "Bug fixes"
127127
changelog_sections.documentation = "Documentation"
128128
changelog_sections.__unknown__ = "Other changes"
129129

0 commit comments

Comments
 (0)