Skip to content

Commit 46119d1

Browse files
authored
Merge pull request #112 from adamperlin/master
Add link to new issue in old issue comment
2 parents 2df54e0 + 061b2cd commit 46119d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ function closeGithubIssue(oldIssue) {
322322

323323
function commentOnIssue(repo, oldIssue, newIssue, closeOriginal) {
324324
const urlObj = populateUrlMetadata()
325-
325+
const newIssueLink = '[' + repo + ']' + '(' + newIssue.html_url + ')'
326326
const comment = {
327-
body: closeOriginal ? 'Kamino closed and cloned this issue to ' + repo : 'Kamino cloned this issue to ' + repo
327+
body: closeOriginal ? 'Kamino closed and cloned this issue to ' + newIssueLink: 'Kamino cloned this issue to ' + newIssueLink
328328
}
329329

330330
ajaxRequest('POST', comment, 'https://api.github.com/repos/' + urlObj.organization + '/' + urlObj.currentRepo + '/issues/' + urlObj.issueNumber + '/comments').then((response) => {
@@ -471,4 +471,4 @@ function openModal() {
471471
$('#kaminoModal').addClass('in')
472472
$('#kaminoModal').css('display', 'block')
473473
$('#js-repo-pjax-container').append(backdrop);
474-
}
474+
}

0 commit comments

Comments
 (0)