mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Implement main() in run_check.py
This commit is contained in:
parent
e670c51680
commit
144ebd3d36
@ -203,7 +203,7 @@ def check_pr_description(pr_info: PRInfo) -> Tuple[str, str]:
|
||||
return description_error, category
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
pr_info = PRInfo(need_orgs=True, pr_event_from_api=True, need_changed_files=True)
|
||||
@ -295,3 +295,7 @@ if __name__ == "__main__":
|
||||
commit.create_status(
|
||||
context=NAME, description=description, state="pending", target_url=url
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user