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

@ -252,15 +252,6 @@ if __name__ == "__main__":
context=NAME, description=description, state=labels_state, target_url=url context=NAME, description=description, state=labels_state, target_url=url
) )
sys.exit(1) 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: else:
print("::notice ::Can run") print("::notice ::Can run")
commit.create_status( commit.create_status(