File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 50
50
GOOD = "good"
51
51
BAD = "bad"
52
52
53
+ NACP = "bot:notacherrypick"
54
+
53
55
GITHUB_WORKSPACE = os .environ .get ('GITHUB_WORKSPACE' )
54
56
GITHUB_SHA = os .environ .get ('GITHUB_SHA' )
55
57
GITHUB_BASE_REF = os .environ .get ('GITHUB_BASE_REF' )
@@ -218,7 +220,7 @@ def _is_entirely_submodule_updates(repo, commit):
218
220
219
221
else :
220
222
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 } ?) "
222
224
else :
223
225
return GOOD , None
224
226
@@ -284,7 +286,7 @@ def check_github_pr_description(config):
284
286
pr_num = int (match .group (1 ))
285
287
pr = repo .get_pull (pr_num )
286
288
287
- if "bot:notacherrypick" in pr .body :
289
+ if NACP in pr .body :
288
290
config ['cherry pick required' ] = False
289
291
290
292
#----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments