diff --git a/src/vendor/github/repomgr.ts b/src/vendor/github/repomgr.ts index 9ef1756..671cccf 100644 --- a/src/vendor/github/repomgr.ts +++ b/src/vendor/github/repomgr.ts @@ -125,14 +125,13 @@ export default class GitHubRepoManager implements RepoManager { title body isDraft - closed - closedAt mergeable - merged + state mergedAt mergedBy { login } + closedAt labels(first: 0) { nodes { name @@ -158,7 +157,11 @@ export default class GitHubRepoManager implements RepoManager { content: pullRequest.body, title: pullRequest.title, 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: { MERGEABLE: MERGE_REQUEST_MERGABILITY.MERGEABLE, CONFLICTING: MERGE_REQUEST_MERGABILITY.CONFLICTING,