From patchwork Mon Dec 19 13:56:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 34555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2400927wrn; Mon, 19 Dec 2022 05:57:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7AxqUjiASG3RHprISYUcQ8fjDT2SDgh7qxlQPWBas/nu+LkaVrFDFGLWeMZPXdzS1b8hrS X-Received: by 2002:a17:907:c295:b0:78d:f455:c398 with SMTP id tk21-20020a170907c29500b0078df455c398mr25583361ejc.62.1671458232770; Mon, 19 Dec 2022 05:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671458232; cv=none; d=google.com; s=arc-20160816; b=LL5655pXxv8wxFgypqYVF4eIRhCE/bQSWVJvx6l32ZuqC46I/clwg0eFlMi+ji847u zcherAdikGNbarBlzGAG6/v0QH+QFYBMRm1FYlrS7wAM6D2ITd7f2R8DufJLm+t0vraw KMK+XD7GD6JbXSgKvmPBMEHAZap5Gfv/CRuvKMNM4hTb9O5uxVx92+XNlICaB6qqqkxr /BqGVPh03Y/xZ3w0mPAXqE2BPllXpOvUUt3AXhtIs/LtE5RyH6swB71izdgqyChO0WeJ TmOD1/AUJDlmIg9/GWsKdOK44q6+TqQ11lOWhO9DgDASVP+jKgGrIwfUR6JoMbdAS9Ox ihzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:cc:content-language:references:to:subject:from :user-agent:mime-version:date:message-id:dkim-signature :dkim-signature:dmarc-filter:delivered-to; bh=9R8MuXnCmpNkX5AWWnpxVBR2pL0q3RA2X3Bb5fSupjk=; b=jpVnp0i4C77b++omdCkcmN870cjoCe97c+DuStZppsm48Hm8d7Bxl/O1OQ7+2Bzzvm 7u7M7phPgwNMkIuSlH8wwVlY7odtRpCuSqAJlIwkLyZkSnTD7dkTx7eqUyr+ao1Mr5pk LQyrh8guK+fMXoOv5Slv+6lslozd3+OLEDkcoiF3j329J4Za4XSJxtdlHoVRAZD8dS5r Wj3ypFkEbqGfAUoIWZ1/R/uizHsmlaqlQJc/mjF69qFQhTdUTEULyoGRuM8/db2EmfQ8 vMTmth4AdE0lfdUnFTtogJOLHjna5XR6KKGnbfHA2q/Jf0cl7zAo40ut7Fywh0b86Wqx uONw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1TuC2khy; dkim=neutral (no key) header.i=@suse.cz header.b=cQfg1m8S; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ec49-20020a0564020d7100b0046b5106d52esi8309740edb.467.2022.12.19.05.57.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 05:57:12 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1TuC2khy; dkim=neutral (no key) header.i=@suse.cz header.b=cQfg1m8S; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 039AD3858407 for ; Mon, 19 Dec 2022 13:56:59 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 6977F3858C2D for ; Mon, 19 Dec 2022 13:56:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6977F3858C2D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 460D737CC8; Mon, 19 Dec 2022 13:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1671458195; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9R8MuXnCmpNkX5AWWnpxVBR2pL0q3RA2X3Bb5fSupjk=; b=1TuC2khy40LwF70tQcXelyy5pibyDs1bLfAGy2ZrisfWPuQetCb47PhSqQ/qkG0a65wr1g KpADZRaEXLB9zFG+p4Tjtym6oGFExpz9QFN0L03FNfz0NAYUojcGb0ZQWitkgkhlUUS3s7 rzBwrQt/kHkURvxJ+oXaHhjtJ5FiqEo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1671458195; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9R8MuXnCmpNkX5AWWnpxVBR2pL0q3RA2X3Bb5fSupjk=; b=cQfg1m8S4WpVoX80rT2jjV4nq8zxHAnN79s/PutVnWOKxIlgdbtIQCTPqfst+9P0iJ83Yd XReo3tAzxWCAKsCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E588F13910; Mon, 19 Dec 2022 13:56:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /rMEN5JtoGO8KQAAMHmgww (envelope-from ); Mon, 19 Dec 2022 13:56:34 +0000 Message-ID: Date: Mon, 19 Dec 2022 14:56:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] gcc-changelog: support digits in PR's component in subject To: gcc-patches@gcc.gnu.org References: Content-Language: en-US Cc: Jakub Jelinek In-Reply-To: X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752650987648084144?= X-GMAIL-MSGID: =?utf-8?q?1752650987648084144?= Yes, fixed in the following patch. Martin contrib/ChangeLog: * gcc-changelog/git_commit.py: Support digits in PR's component in subject. --- 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]+)$')