Skip to content

Commit 11c00d8

Browse files
committed
git-commit-checks: handle empty PR body
Handle the case where the PR body is empty. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent 2da4367 commit 11c00d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def check_github_pr_description(config):
301301
pr_num = int(match.group(1))
302302
pr = repo.get_pull(pr_num)
303303

304-
if NACP in pr.body:
304+
if pr.body and NACP in pr.body:
305305
config['cherry pick required'] = False
306306

307307
#----------------------------------------------------------------------------

0 commit comments

Comments
 (0)