* [PATCH] mklog: support '-b c/101343' format.
@ 2021-07-12 10:09 Martin Liška
0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2021-07-12 10:09 UTC (permalink / raw)
To: gcc-patches; +Cc: Tobias Burnus
Hello.
I don't use --fill-up-bug-titles, but I would like using ./contrib/mklog.py -b c/101343
producing:
PR c/101343
...
I'm going to install the patch if there are not comments.
Martin
contrib/ChangeLog:
* mklog.py: Support additional PRs without PR prefix.
---
contrib/mklog.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/contrib/mklog.py b/contrib/mklog.py
index ba70af0eef2..d2aea85c7cc 100755
--- a/contrib/mklog.py
+++ b/contrib/mklog.py
@@ -157,7 +157,11 @@ def generate_changelog(data, no_functions=False, fill_pr_titles=False,
global firstpr
if additional_prs:
- prs = [pr for pr in additional_prs if pr not in prs]
+ for apr in additional_prs:
+ if not apr.startswith('PR ') and '/' in apr:
+ apr = 'PR ' + apr
+ if apr not in prs:
+ prs.append(apr)
for file in diff:
# skip files that can't be parsed
if file.path == '/dev/null':
--
2.32.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-12 10:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 10:09 [PATCH] mklog: support '-b c/101343' format Martin Liška
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).