Skip to content

Commit 580984b

Browse files
authored
Merge pull request #10021 from jsquyres/pr/who-has-empty-PR-descriptions
git-commit-checks: handle empty PR body
2 parents 3557a67 + 11c00d8 commit 580984b

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)