-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport #43017 to 22.10: Add a CI step to mark commits as ready for …
…release
- Loading branch information
robot-clickhouse
committed
Nov 8, 2022
1 parent
9c52742
commit 43525c2
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from commit_status_helper import get_commit | ||
from env_helper import GITHUB_JOB_URL | ||
from get_robot_token import get_best_robot_token | ||
from github_helper import GitHub | ||
from pr_info import PRInfo | ||
|
||
RELEASE_READY_STATUS = "Ready for release" | ||
|
||
|
||
def main(): | ||
pr_info = PRInfo() | ||
gh = GitHub(get_best_robot_token(), per_page=100) | ||
commit = get_commit(gh, pr_info.sha) | ||
commit.create_status( | ||
context=RELEASE_READY_STATUS, | ||
description="the release can be created from the commit", | ||
state="success", | ||
target_url=GITHUB_JOB_URL(), | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |