Skip to content

Commit 3219318

Browse files
authored
bugfix clean_release_notes.py (#1801)
* bugfix clean_release_notes.py 1) Developers name needs to be consistent or else it wont find that dict entry 2) need to handle escape char of regex * Update clean_release_notes.py
1 parent 890e0ac commit 3219318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/clean_release_notes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
VERBOSE = os.getenv("VERBOSE", "true").lower() == "true"
8383
GITHUB_LABEL_TO_CATEGORY = {
8484
"topic: bc-breaking": "BC Breaking",
85-
"topic: deprecation": "Deprecation",
85+
"topic: deprecation": "Deprecations",
8686
"topic: new feature": "New Features",
8787
"topic: improvement": "Improvement",
8888
"topic: bug fix": "Bug Fixes",
@@ -223,7 +223,7 @@ def format_commit(commit_line: str) -> str:
223223
After: * Commit title (https://github.com/pytorch/ao/pull/123)
224224
"""
225225
# Remove author, put PR link in parentheses
226-
commit_line = re.sub(" by @.* in (.*)", " (\g<1>)", commit_line)
226+
commit_line = re.sub(" by @.* in (.*)", r" (\\g<1>)", commit_line)
227227
# Capitalize first letter
228228
commit_line = commit_line.lstrip("* ")
229229
commit_line = "* " + commit_line[0].upper() + commit_line[1:]

0 commit comments

Comments
 (0)