We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 452e771 commit 2725515Copy full SHA for 2725515
2 files changed
scripts/pr_check/pr_check.py
@@ -1,3 +1,4 @@
1
+import click
2
from github import Github
3
from github.PullRequest import PullRequest
4
from github.Repository import Repository
@@ -41,5 +42,8 @@ def verify_user_can_trigger_build(
41
42
repo = github.get_repo(f"{owner}/{repo_name}")
43
pull = repo.get_pull(int(pr_number))
44
- validate_pr_target_branch_in_valid_branches(pull, valid_branches)
45
- validate_author_pr_is_member_of_org(repo, github, pull)
+ try:
46
+ validate_pr_target_branch_in_valid_branches(pull, valid_branches)
47
+ validate_author_pr_is_member_of_org(repo, github, pull)
48
+ except ValueError as e:
49
+ click.echo(f"teamcity[buildStop comment='{str(e)}' readdToQueue='false']")
version.txt
@@ -1 +1 @@
-1.0.3
+1.0.4
0 commit comments