Skip to content

Commit

Permalink
ci: fix docs checker for empty body (#27569)
Browse files Browse the repository at this point in the history
Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
  • Loading branch information
frappe-pr-bot and ankush authored Sep 17, 2021
1 parent 6ed4046 commit e6d0a57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/helper/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def docs_link_exists(body):

if response.ok:
payload = response.json()
title = payload.get("title", "").lower().strip()
head_sha = payload.get("head", {}).get("sha")
body = payload.get("body", "").lower()
title = (payload.get("title") or "").lower().strip()
head_sha = (payload.get("head") or {}).get("sha")
body = (payload.get("body") or "").lower()

if (title.startswith("feat")
and head_sha
Expand Down

0 comments on commit e6d0a57

Please sign in to comment.