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 5050GOOD = "good"
5151BAD = "bad"
5252
53+ NACP = "bot:notacherrypick"
54+
5355GITHUB_WORKSPACE = os .environ .get ('GITHUB_WORKSPACE' )
5456GITHUB_SHA = os .environ .get ('GITHUB_SHA' )
5557GITHUB_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#----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments