|
26 | 26 | REPO_TEMPLATE = { |
27 | 27 | "Paddle": r'''### PR Category(.*[^\s].*)### PR Types(.*[^\s].*)### Description(.*[^\s].*)### 是否引起精度变化(.*[^\s].*)''' |
28 | 28 | } |
29 | | -elif BRANCH.startswith("fleety_"): |
| 29 | +elif BRANCH.startswith("release"): |
30 | 30 | REPO_TEMPLATE = { |
31 | 31 | "Paddle": r'''### PR Category(.*[^\s].*)### PR Types(.*[^\s].*)### Description(.*?devPR:https://github\.com/PaddlePaddle/Paddle/pull/.*?)(?:\n###|\Z)''' |
32 | 32 | } |
@@ -109,13 +109,13 @@ def parameter_accuracy(body): |
109 | 109 | single_mess += f'{i}.' |
110 | 110 | if len(single_mess) != 0: |
111 | 111 | message += f'{key} should be in {test_list}. but now is [{single_mess}].' |
112 | | - if BRANCH.startswith("fleety_"): |
| 112 | + if BRANCH.startswith("release"): |
113 | 113 | PR_dic['Description'] = body[changes_end + len('### Description') :] |
114 | 114 | des_pr_id = extract_pr_links(PR_dic['Description']) |
115 | 115 | if len(des_pr_id) == 0 or not check_link_accessible( |
116 | 116 | "https://github.com/PaddlePaddle/Paddle/pull/" + str(des_pr_id[0]) |
117 | 117 | ): |
118 | | - 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' |
| 118 | + 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' |
119 | 119 |
|
120 | 120 | if BRANCH.startswith("develop"): |
121 | 121 | accuracy_start = body.find('### 是否引起精度变化') |
@@ -277,8 +277,8 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE): |
277 | 277 | elif result is None: |
278 | 278 | res = False |
279 | 279 | message = parameter_accuracy(body) |
280 | | - if BRANCH.startswith("fleety_") and len(message) == 0: |
281 | | - 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' |
| 280 | + if BRANCH.startswith("release") and len(message) == 0: |
| 281 | + 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' |
282 | 282 | return res, message |
283 | 283 |
|
284 | 284 |
|
|
0 commit comments