git: Add check for CI error

This commit is contained in:
Oliver Davies 2020-05-23 00:12:21 +01:00
parent 87d5b689b2
commit af429a74a4

View file

@ -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',
];