Skip to content

Commit

Permalink
fix(api-github-v4): store issue node-id when using issue-id
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Nov 7, 2019
1 parent d199228 commit 8f2065d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vssue/api-github-v4/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ query getIssueById {
}
}`,
}, options)
// postComment needs issue NodeId, so we store it internally
this._issueNodeId = data.data.repository.issue.id
return normalizeIssue(data.data.repository.issue)
} catch (e) {
if (e.response && e.response.status === 404) {
Expand Down

0 comments on commit 8f2065d

Please sign in to comment.