ci: ignore backports while checking docs (#26962)

[skip ci]
This commit is contained in:
Ankush Menat 2021-08-16 18:03:21 +05:30 committed by GitHub
parent 9c893e320d
commit 2a43fe1a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,11 +32,15 @@ if __name__ == "__main__":
if response.ok: if response.ok:
payload = response.json() payload = response.json()
title = payload.get("title", "").lower() title = payload.get("title", "").lower().strip()
head_sha = payload.get("head", {}).get("sha") head_sha = payload.get("head", {}).get("sha")
body = payload.get("body", "").lower() 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): if docs_link_exists(body):
print("Documentation Link Found. You're Awesome! 🎉") print("Documentation Link Found. You're Awesome! 🎉")