Implement main() in run_check.py

This commit is contained in:
Mikhail f. Shiryaev 2023-04-06 11:03:32 +02:00
parent e670c51680
commit 144ebd3d36
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -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()