git: Add check for CI error
This commit is contained in:
parent
87d5b689b2
commit
af429a74a4
|
@ -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',
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue