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
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user