Commit 4634187810d6f06d0603f7e7e2935ecf2ba4c000
Name pull requests
Charles Lehner committed on 8/2/2016, 8:09:41 PMParent: d201581df65c82f8507dd37357a428ad08cb372c
Files changed
modules/git.js | changed |
modules/git.js | ||
---|---|---|
@@ -283,9 +283,11 @@ | ||
283 | 283 | }}) |
284 | 284 | getIssueState(msg.key, function (err, state) { |
285 | 285 | if (err) return console.error(err) |
286 | 286 | isOpen = state === 'open' |
287 | - a.textContent = isOpen ? 'Close' : 'Reopen' | |
287 | + a.textContent = c.type === 'pull-request' | |
288 | + ? isOpen ? 'Close Pull Request' : 'Reopen Pull Request' | |
289 | + : isOpen ? 'Close Issue' : 'Reopen Issue' | |
288 | 290 | }) |
289 | 291 | return a |
290 | 292 | } |
291 | 293 | } |
Built with git-ssb-web