Skip to content

Commit

Permalink
pr_tool: auto-select Added section based on labels
Browse files Browse the repository at this point in the history
detect the "feature" label on the PR and put the changelog record into
the Added section.
  • Loading branch information
arogge committed Feb 27, 2024
1 parent 98647a4 commit 1c9d836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devtools/pip-tools/pr_tool/main.py
Expand Up @@ -345,6 +345,8 @@ def get_changelog_section(pr):
return "Fixed"
if "removal" in labels:
return "Removed"
if "feature" in labels:
return "Added"
return guess_section(pr["title"])


Expand Down

0 comments on commit 1c9d836

Please sign in to comment.