diff --git a/bin/git-close-pull-request b/bin/git-close-pull-request index 7439342..d10f8ea 100755 --- a/bin/git-close-pull-request +++ b/bin/git-close-pull-request @@ -20,6 +20,7 @@ class ClosesPullRequests private $localBranch; private $remoteBranch; + private const CI_ERROR = 'error'; private const CI_PENDING = 'pending'; private const CI_SUCCESS = 'success'; @@ -37,6 +38,7 @@ class ClosesPullRequests // TODO: Check for failures, or skip if there is no CI. $errors = [ + self::CI_ERROR => 'Aborting: CI error', self::CI_PENDING => 'Aborting: CI pending', ];