From b0abe9725dc641091e2b95b41fed67c0a1b4d3e2 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 5 Mar 2024 10:45:24 +0100 Subject: [PATCH] schutzbot/update_github_status.sh: new verb: fail New script subcommand that explicitly reports a failure. --- schutzbot/update_github_status.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/schutzbot/update_github_status.sh b/schutzbot/update_github_status.sh index 79d42cdf..660f9e00 100755 --- a/schutzbot/update_github_status.sh +++ b/schutzbot/update_github_status.sh @@ -16,6 +16,9 @@ elif [[ $1 == "update" ]]; then else exit 0 fi +elif [[ $1 == "fail" ]]; then + GITHUB_NEW_STATE="failure" + GITHUB_NEW_DESC="I'm sorry, something is odd about this commit." else echo "unknown command" exit 1