From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 4343C3857C48; Mon, 19 Dec 2022 13:56:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4343C3857C48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671458209; bh=HvAHSCZMwr4RjqN325pjZYb0vsEN+g+vBOigaZa9tGM=; h=From:To:Subject:Date:From; b=G7/GEplHze2otC/OtogUAuudfUrIKkPy+7xHHtfCnYJXPJ2+DzYXq+naq4euxTI21 mUpUODPoT0mxOa8UmmiehQTlOyZCAuc3semr5pZFN7Rj2CA2uQwq2uu+8qJ1dUggje xV/ks4Xr1cEwJM+PCB5KvP/mIB/3uqQ/RR9pjuxk= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4780] gcc-changelog: support digits in PR's component in subject X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 7e9ec734f9f942b8068df476f8365440fa9fd410 X-Git-Newrev: a9f6a2b7f579b684037eaddab97db35096c10c3b Message-Id: <20221219135649.4343C3857C48@sourceware.org> Date: Mon, 19 Dec 2022 13:56:49 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a9f6a2b7f579b684037eaddab97db35096c10c3b commit r13-4780-ga9f6a2b7f579b684037eaddab97db35096c10c3b Author: Martin Liska Date: Mon Dec 19 14:55:39 2022 +0100 gcc-changelog: support digits in PR's component in subject contrib/ChangeLog: * gcc-changelog/git_commit.py: Support digits in PR's component in subject. Diff: --- contrib/gcc-changelog/git_commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 7fde02cba85..b73e587eb98 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -163,7 +163,7 @@ author_line_regex = \ re.compile(r'^(?P\d{4}-\d{2}-\d{2})\ {2}(?P.* <.*>)') additional_author_regex = re.compile(r'^\t(?P\ *)?(?P.* <.*>)') changelog_regex = re.compile(r'^(?:[fF]or +)?([a-z0-9+-/]*)ChangeLog:?') -subject_pr_regex = re.compile(r'(^|\W)PR\s+(?P[a-zA-Z+-]+)/(?P\d{4,7})') +subject_pr_regex = re.compile(r'(^|\W)PR\s+(?P[a-zA-Z0-9+-]+)/(?P\d{4,7})') subject_pr2_regex = re.compile(r'[(\[]PR\s*(?P\d{4,7})[)\]]') pr_regex = re.compile(r'\tPR (?P[a-z0-9+-]+\/)?(?P[0-9]+)$') dr_regex = re.compile(r'\tDR ([0-9]+)$')