未验证 提交 d3f6e2d5 编写于 作者: J jzhang533 提交者: GitHub

describe -> description in PR template (#53114)

上级 c91c9edb
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
### PR changes ### PR changes
<!-- One of [ OPs | APIs | Docs | Others ] --> <!-- One of [ OPs | APIs | Docs | Others ] -->
### Describe ### Description
<!-- Describe what this PR does --> <!-- Describe what you’ve done -->
...@@ -21,7 +21,7 @@ import requests ...@@ -21,7 +21,7 @@ import requests
PR_checkTemplate = ['Paddle'] PR_checkTemplate = ['Paddle']
REPO_TEMPLATE = { REPO_TEMPLATE = {
"Paddle": r'''### PR types(.*[^\s].*)### PR changes(.*[^\s].*)### Describe(.*[^\s].*)''' "Paddle": r'''### PR types(.*[^\s].*)### PR changes(.*[^\s].*)### Description(.*[^\s].*)'''
} }
...@@ -44,7 +44,7 @@ def parameter_accuracy(body): ...@@ -44,7 +44,7 @@ def parameter_accuracy(body):
PR_changes = ['OPs', 'APIs', 'Docs', 'Others'] PR_changes = ['OPs', 'APIs', 'Docs', 'Others']
body = re.sub("\r\n", "", body) body = re.sub("\r\n", "", body)
type_end = body.find('### PR changes') type_end = body.find('### PR changes')
changes_end = body.find('### Describe') changes_end = body.find('### Description')
PR_dic['PR types'] = body[len('### PR types') : type_end] PR_dic['PR types'] = body[len('### PR types') : type_end]
PR_dic['PR changes'] = body[type_end + 14 : changes_end] PR_dic['PR changes'] = body[type_end + 14 : changes_end]
message = '' message = ''
...@@ -87,7 +87,7 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE): ...@@ -87,7 +87,7 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE):
res: True or False res: True or False
""" """
res = False res = False
note = r'<!-- Demo: https://github.com/PaddlePaddle/Paddle/pull/24810 -->\r\n|<!-- One of \[ New features \| Bug fixes \| Function optimization \| Performance optimization \| Breaking changes \| Others \] -->|<!-- One of \[ OPs \| APIs \| Docs \| Others \] -->|<!-- Describe what this PR does -->' note = r'<!-- Demo: https://github.com/PaddlePaddle/Paddle/pull/24810 -->\r\n|<!-- One of \[ New features \| Bug fixes \| Function optimization \| Performance optimization \| Breaking changes \| Others \] -->|<!-- One of \[ OPs \| APIs \| Docs \| Others \] -->|<!-- Describe what you’ve done -->'
if body is None: if body is None:
body = '' body = ''
body = re.sub(note, "", body) body = re.sub(note, "", body)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册