Skip to content

Commit

Permalink
scripts: release: strip title names
Browse files Browse the repository at this point in the history
Make sure listed titles have no trailing/leading space (they often do
and right now they have to be cleaned manually before going into the
release notes file).

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri authored and mmahadevan108 committed Sep 27, 2022
1 parent daff79b commit 47ae66d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release/list_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def main():
if 'pull_request' not in issue:
# * :github:`8193` - STM32 config BUILD_OUTPUT_HEX fail
f.write("* :github:`{}` - {}\n".format(
issue['number'], issue['title']))
issue['number'], issue['title'].strip()))
count = count + 1
elif args.issues_in_pulls:
i.pull_requests(base=args.issues_in_pulls)
Expand Down Expand Up @@ -211,7 +211,7 @@ def main():
if item:
# * :github:`8193` - STM32 config BUILD_OUTPUT_HEX fail
f.write("* :github:`{}` - {}\n".format(
item['number'], item['title']))
item['number'], item['title'].strip()))


if __name__ == '__main__':
Expand Down

0 comments on commit 47ae66d

Please sign in to comment.