mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
add update_mergeable_check trigger
This commit is contained in:
parent
99ad09e9f3
commit
dfbbc51045
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user