From e4065bfff54a7a753ef860ed01acf9dc6cdf40ea Mon Sep 17 00:00:00 2001 From: gushiwei Date: Fri, 17 Apr 2026 04:02:48 +0000 Subject: [PATCH 1/3] fix --- .github/workflows/CheckPRTemplate.yml | 2 +- .github/workflows/Codestyle-Check.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CheckPRTemplate.yml b/.github/workflows/CheckPRTemplate.yml index 1bc2dfa75d6a32..6fcd8c47101374 100644 --- a/.github/workflows/CheckPRTemplate.yml +++ b/.github/workflows/CheckPRTemplate.yml @@ -2,7 +2,7 @@ name: Check PR Template on: pull_request: - branches: [develop] + branches: [develop, release/**] types: [opened, synchronize, reopened, edited] jobs: diff --git a/.github/workflows/Codestyle-Check.yml b/.github/workflows/Codestyle-Check.yml index 4bb56fe926b443..e34a9395d5e075 100644 --- a/.github/workflows/Codestyle-Check.yml +++ b/.github/workflows/Codestyle-Check.yml @@ -2,7 +2,7 @@ name: Codestyle-Check on: pull_request: - branches: ["develop"] + branches: [develop, release/**] jobs: check-bypass: From f5e8399d23fda66258ec13658570a49837780b74 Mon Sep 17 00:00:00 2001 From: gushiwei Date: Fri, 17 Apr 2026 04:42:26 +0000 Subject: [PATCH 2/3] devpr --- tools/CheckPRTemplate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/CheckPRTemplate.py b/tools/CheckPRTemplate.py index 1289d1dd97d591..5e24d13fbf2e95 100644 --- a/tools/CheckPRTemplate.py +++ b/tools/CheckPRTemplate.py @@ -109,13 +109,13 @@ def parameter_accuracy(body): single_mess += f'{i}.' if len(single_mess) != 0: message += f'{key} should be in {test_list}. but now is [{single_mess}].' - if BRANCH.startswith("fleety_"): + if BRANCH.startswith("release"): PR_dic['Description'] = body[changes_end + len('### Description') :] des_pr_id = extract_pr_links(PR_dic['Description']) if len(des_pr_id) == 0 or not check_link_accessible( "https://github.com/PaddlePaddle/Paddle/pull/" + str(des_pr_id[0]) ): - message += 'The PR link does not exist. To merge into the fleety branch, you need to merge into the develop branch first and then cherry-pick it to the fleety branch. Please merge into develop first and fill in the PR link in the Description' + message += 'The PR link does not exist. To merge into the release branch, you need to merge into the develop branch first and then cherry-pick it to the release branch. Please merge into develop first and fill in the PR link in the Description. Use this format: devPR:https://github.com/PaddlePaddle/Paddle/pull/xxxx' if BRANCH.startswith("develop"): accuracy_start = body.find('### 是否引起精度变化') @@ -278,7 +278,7 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE): res = False message = parameter_accuracy(body) if BRANCH.startswith("fleety_") and len(message) == 0: - message = 'The PR link does not exist. To merge into the fleety branch, you need to merge into the develop branch first and then cherry-pick it to the fleety branch. Please merge into develop first and fill in the PR link in the Description' + message = 'The PR link does not exist. To merge into the fleety branch, you need to merge into the develop branch first and then cherry-pick it to the fleety branch. Please merge into develop first and fill in the PR link in the Description. Use this format: devPR:https://github.com/PaddlePaddle/Paddle/pull/xxxx' return res, message From ee53d6b329367714b12d87c58c159837e46b105d Mon Sep 17 00:00:00 2001 From: gushiwei Date: Fri, 17 Apr 2026 05:00:54 +0000 Subject: [PATCH 3/3] fix --- tools/CheckPRTemplate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/CheckPRTemplate.py b/tools/CheckPRTemplate.py index 5e24d13fbf2e95..e144d27ea477af 100644 --- a/tools/CheckPRTemplate.py +++ b/tools/CheckPRTemplate.py @@ -26,7 +26,7 @@ REPO_TEMPLATE = { "Paddle": r'''### PR Category(.*[^\s].*)### PR Types(.*[^\s].*)### Description(.*[^\s].*)### 是否引起精度变化(.*[^\s].*)''' } -elif BRANCH.startswith("fleety_"): +elif BRANCH.startswith("release"): REPO_TEMPLATE = { "Paddle": r'''### PR Category(.*[^\s].*)### PR Types(.*[^\s].*)### Description(.*?devPR:https://github\.com/PaddlePaddle/Paddle/pull/.*?)(?:\n###|\Z)''' } @@ -277,8 +277,8 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE): elif result is None: res = False message = parameter_accuracy(body) - if BRANCH.startswith("fleety_") and len(message) == 0: - message = 'The PR link does not exist. To merge into the fleety branch, you need to merge into the develop branch first and then cherry-pick it to the fleety branch. Please merge into develop first and fill in the PR link in the Description. Use this format: devPR:https://github.com/PaddlePaddle/Paddle/pull/xxxx' + if BRANCH.startswith("release") and len(message) == 0: + message = 'The PR link does not exist. To merge into the release branch, you need to merge into the develop branch first and then cherry-pick it to the release branch. Please merge into develop first and fill in the PR link in the Description. Use this format: devPR:https://github.com/PaddlePaddle/Paddle/pull/xxxx' return res, message