Skip to content

Commit

Permalink
ci: ignore backports while checking docs (frappe#26962)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ankush committed Aug 16, 2021
1 parent f5e9284 commit 7e69186
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/helper/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ def docs_link_exists(body):

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

if title.startswith("feat") and head_sha and "no-docs" not in body:
if (title.startswith("feat")
and head_sha
and "no-docs" not in body
and "backport" not in body
):
if docs_link_exists(body):
print("Documentation Link Found. You're Awesome! 🎉")

Expand Down

0 comments on commit 7e69186

Please sign in to comment.