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

describe -> description in PR template (#53114)

上级 c91c9edb
......@@ -5,5 +5,5 @@
### PR changes
<!-- One of [ OPs | APIs | Docs | Others ] -->
### Describe
<!-- Describe what this PR does -->
### Description
<!-- Describe what you’ve done -->
......@@ -21,7 +21,7 @@ import requests
PR_checkTemplate = ['Paddle']
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):
PR_changes = ['OPs', 'APIs', 'Docs', 'Others']
body = re.sub("\r\n", "", body)
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 changes'] = body[type_end + 14 : changes_end]
message = ''
......@@ -87,7 +87,7 @@ def checkPRTemplate(repo, body, CHECK_TEMPLATE):
res: True or 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:
body = ''
body = re.sub(note, "", body)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册