github: fix indicating merge request merged state
This commit is contained in:
parent
a67e86c398
commit
e2de14a3c9
11
src/vendor/github/repomgr.ts
vendored
11
src/vendor/github/repomgr.ts
vendored
|
@ -125,14 +125,13 @@ export default class GitHubRepoManager implements RepoManager {
|
||||||
title
|
title
|
||||||
body
|
body
|
||||||
isDraft
|
isDraft
|
||||||
closed
|
|
||||||
closedAt
|
|
||||||
mergeable
|
mergeable
|
||||||
merged
|
state
|
||||||
mergedAt
|
mergedAt
|
||||||
mergedBy {
|
mergedBy {
|
||||||
login
|
login
|
||||||
}
|
}
|
||||||
|
closedAt
|
||||||
labels(first: 0) {
|
labels(first: 0) {
|
||||||
nodes {
|
nodes {
|
||||||
name
|
name
|
||||||
|
@ -158,7 +157,11 @@ export default class GitHubRepoManager implements RepoManager {
|
||||||
content: pullRequest.body,
|
content: pullRequest.body,
|
||||||
title: pullRequest.title,
|
title: pullRequest.title,
|
||||||
repo: this.repo,
|
repo: this.repo,
|
||||||
state: pullRequest.closed ? MERGE_REQUEST_STATE.CLOSED : MERGE_REQUEST_STATE.OPEN,
|
state: {
|
||||||
|
OPEN: MERGE_REQUEST_STATE.OPEN,
|
||||||
|
CLOSED: MERGE_REQUEST_STATE.CLOSED,
|
||||||
|
MERGED: MERGE_REQUEST_STATE.MERGED,
|
||||||
|
}[pullRequest.state],
|
||||||
mergability: {
|
mergability: {
|
||||||
MERGEABLE: MERGE_REQUEST_MERGABILITY.MERGEABLE,
|
MERGEABLE: MERGE_REQUEST_MERGABILITY.MERGEABLE,
|
||||||
CONFLICTING: MERGE_REQUEST_MERGABILITY.CONFLICTING,
|
CONFLICTING: MERGE_REQUEST_MERGABILITY.CONFLICTING,
|
||||||
|
|
Loading…
Reference in a new issue