Skip to content

Commit 1643885

Browse files
authored
Merge pull request #8869 from jsquyres/pr/remind-people-about-bot-notacherrypick
git-commit-checks.py: remind people about bot:notacherrypick
2 parents 6d901fc + e5ef958 commit 1643885

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/git-commit-checks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
GOOD = "good"
5151
BAD = "bad"
5252

53+
NACP = "bot:notacherrypick"
54+
5355
GITHUB_WORKSPACE = os.environ.get('GITHUB_WORKSPACE')
5456
GITHUB_SHA = os.environ.get('GITHUB_SHA')
5557
GITHUB_BASE_REF = os.environ.get('GITHUB_BASE_REF')
@@ -218,7 +220,7 @@ def _is_entirely_submodule_updates(repo, commit):
218220

219221
else:
220222
if config['cherry pick required']:
221-
return BAD, "does not include a cherry pick message"
223+
return BAD, f"does not include a cherry pick message (did you need to {NACP}?)"
222224
else:
223225
return GOOD, None
224226

@@ -284,7 +286,7 @@ def check_github_pr_description(config):
284286
pr_num = int(match.group(1))
285287
pr = repo.get_pull(pr_num)
286288

287-
if "bot:notacherrypick" in pr.body:
289+
if NACP in pr.body:
288290
config['cherry pick required'] = False
289291

290292
#----------------------------------------------------------------------------

0 commit comments

Comments
 (0)