From 663e5508244ea5b1ac85ad5e638aec45d12ceeed Mon Sep 17 00:00:00 2001 From: Frappe PR Bot Date: Mon, 16 Aug 2021 18:20:07 +0530 Subject: [PATCH] ci: ignore backports while checking docs (#26962) (#26965) [skip ci] (cherry picked from commit 2a43fe1a22f993ed4eca779ce268064e56fe5246) Co-authored-by: Ankush Menat --- .github/helper/documentation.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/helper/documentation.py b/.github/helper/documentation.py index 9cc4663c394..b4a4ba1bbdd 100644 --- a/.github/helper/documentation.py +++ b/.github/helper/documentation.py @@ -32,11 +32,15 @@ if __name__ == "__main__": 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! 🎉")