mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Simplify labels check
This commit is contained in:
parent
8d876653e8
commit
b4c0f7a621
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user