Simplify labels check

This commit is contained in:
Mikhail f. Shiryaev 2022-05-24 12:56:57 +02:00
parent 8d876653e8
commit b4c0f7a621
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -253,16 +253,7 @@ if __name__ == "__main__":
)
sys.exit(1)
else:
if "pr-documentation" in pr_info.labels or "pr-doc-fix" in pr_info.labels:
commit.create_status(
context=NAME,
description="Skipping checks for documentation",
state="success",
target_url=url,
)
print("::notice ::Can run, but it's documentation PR, skipping")
else:
print("::notice ::Can run")
commit.create_status(
context=NAME, description=description, state="pending", target_url=url
)
print("::notice ::Can run")
commit.create_status(
context=NAME, description=description, state="pending", target_url=url
)