Skip to content

Commit

Permalink
Merge pull request #879 from danger/add_missing_gitlab_states
Browse files Browse the repository at this point in the history
Add GitLab missing states
  • Loading branch information
orta committed Jun 22, 2019
2 parents 041cf0b + 315da11 commit 4dd731e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<!-- Your comment below this -->

- Add GitLab missing states - [@f-meloni]
- Fixes incorrect slug for builds from forks on Codefresh - [@stevenp]

# 8.0.0
Expand Down
6 changes: 3 additions & 3 deletions source/dsl/GitLabDSL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface GitLabUser {
id: number
name: string
username: string
state: "active" // XXX: other states?
state: "active" | "blocked"
avatar_url: string | null
web_url: string
}
Expand Down Expand Up @@ -97,7 +97,7 @@ export interface GitLabMRBase {
project_id: number
title: string
description: string
state: "closed" // XXX: other states?
state: "closed" | "active"
created_at: string
updated_at: string
due_date: string
Expand Down Expand Up @@ -139,7 +139,7 @@ export interface GitLabMR extends GitLabMRBase {
id: number
sha: string
ref: string
status: "success" // XXX: other statuses?
status: "canceled" | "failed" | "pending" | "running" | "skipped" | "success"
web_url: string
}
diff_refs: {
Expand Down

0 comments on commit 4dd731e

Please sign in to comment.