contrib/mklog.py: Improve PR handling
authorTobias Burnus <tobias@codesourcery.com>
Mon, 21 Jun 2021 13:17:22 +0000 (15:17 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 21 Jun 2021 13:17:45 +0000 (15:17 +0200)
commitedf0c3ffb59d75c11e05bc722432dc554e275c72
treeff9d8e377cbeb0b16e22d2b3605c9629e559e231
parent0ad9c7087ef3904da89f2db6007b6d28b116087f
contrib/mklog.py: Improve PR handling

Co-authored-by: Martin Sebor <msebor@redhat.com>
contrib/ChangeLog:

* mklog.py (bugzilla_url): Fetch also component.
(pr_filename_regex): New.
(get_pr_titles): Update PR string with correct format and component.
(generate_changelog): Take additional PRs; extract PR from the
filename.
(__main__): Add -b/--pr-numbers argument.
* test_mklog.py (EXPECTED4): Update to expect a PR for the new file.
contrib/mklog.py
contrib/test_mklog.py