fix(platform/gitlab): add missing "waiting_for_resource" branch status (#12832)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Michael B 2021-11-25 12:01:52 +01:00 committed by GitHub
parent 4d1c4f16dc
commit 6ad29b6124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,6 +332,7 @@ type BranchState =
| 'pending' | 'pending'
| 'created' | 'created'
| 'running' | 'running'
| 'waiting_for_resource'
| 'manual' | 'manual'
| 'success' | 'success'
| 'failed' | 'failed'
@ -372,6 +373,7 @@ const gitlabToRenovateStatusMapping: Record<BranchState, BranchStatus> = {
created: BranchStatus.yellow, created: BranchStatus.yellow,
manual: BranchStatus.yellow, manual: BranchStatus.yellow,
running: BranchStatus.yellow, running: BranchStatus.yellow,
waiting_for_resource: BranchStatus.yellow,
success: BranchStatus.green, success: BranchStatus.green,
failed: BranchStatus.red, failed: BranchStatus.red,
canceled: BranchStatus.red, canceled: BranchStatus.red,