add update_mergeable_check trigger

This commit is contained in:
Yakov Olkhovskiy 2022-08-16 09:02:03 -04:00 committed by GitHub
parent 99ad09e9f3
commit dfbbc51045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ import logging
import os
import sys
import subprocess
import atexit
from github import Github
@ -14,7 +15,7 @@ from pr_info import PRInfo
from build_download_helper import download_unit_tests
from upload_result_helper import upload_results
from docker_pull_helper import get_image_with_version
from commit_status_helper import post_commit_status
from commit_status_helper import post_commit_status, update_mergeable_check
from clickhouse_helper import (
ClickHouseHelper,
mark_flaky_tests,
@ -116,6 +117,8 @@ if __name__ == "__main__":
gh = Github(get_best_robot_token(), per_page=100)
atexit.register(update_mergeable_check, gh, pr_info, check_name)
rerun_helper = RerunHelper(gh, pr_info, check_name)
if rerun_helper.is_already_finished_by_status():
logging.info("Check is already finished according to github status, exiting")