Skip to content

Commit e3bde83

Browse files
swgu98root
andauthored
git config (#76120)
Co-authored-by: root <[email protected]>
1 parent f615b6d commit e3bde83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/CheckPRTemplate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
PR_checkTemplate = ['Paddle']
2323

2424
REPO_TEMPLATE = {
25-
"Paddle": r'''### PR Category(.*[^\s].*)### PR Types(.*[^\s].*)### Description(.*?https://github\.com/PaddlePaddle/Paddle/pull/.*?)(?:\n###|\Z)'''
25+
"Paddle": r'''### PR Category(.*[^\s].*)### PR Types(.*[^\s].*)### Description(.*?devPR:https://github\.com/PaddlePaddle/Paddle/pull/.*?)(?:\n###|\Z)'''
2626
}
2727

2828

@@ -99,7 +99,7 @@ def parameter_accuracy(body):
9999
if len(des_pr_id) == 0 or not check_link_accessible(
100100
"https://github.com/PaddlePaddle/Paddle/pull/" + str(des_pr_id[0])
101101
):
102-
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'
102+
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'
103103
return message
104104

105105

@@ -115,7 +115,7 @@ def checkComments(url):
115115

116116
def checkPRTemplate(repo, body, CHECK_TEMPLATE):
117117
"""
118-
Check if PR's description meet the standard of template
118+
Check if PR's description meet the standard of template
119119
Args:
120120
body: PR's Body.
121121
CHECK_TEMPLATE: check template str.
@@ -138,7 +138,7 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE):
138138
res = False
139139
message = parameter_accuracy(body)
140140
if len(message) == 0:
141-
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'
141+
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'
142142
return res, message
143143

144144

0 commit comments

Comments
 (0)