From d3f6e2d57dc69e092fedff9f44ff4133be43daa8 Mon Sep 17 00:00:00 2001 From: jzhang533 Date: Thu, 20 Apr 2023 19:18:18 +0800 Subject: [PATCH] describe -> description in PR template (#53114) --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- tools/CheckPRTemplate.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index fdff7fb4e5d..8a8c9c7fa1e 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,5 +5,5 @@ ### PR changes -### Describe - +### Description + diff --git a/tools/CheckPRTemplate.py b/tools/CheckPRTemplate.py index d8580e79405..3ba32deadeb 100644 --- a/tools/CheckPRTemplate.py +++ b/tools/CheckPRTemplate.py @@ -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'\r\n|||' + note = r'\r\n|||' if body is None: body = '' body = re.sub(note, "", body) -- GitLab