Skip to content

Commit

Permalink
Merge pull request #112 from adamperlin/master
Browse files Browse the repository at this point in the history
Add link to new issue in old issue comment
  • Loading branch information
johnmurphy01 authored Jul 3, 2018
2 parents 2df54e0 + 061b2cd commit 46119d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ function closeGithubIssue(oldIssue) {

function commentOnIssue(repo, oldIssue, newIssue, closeOriginal) {
const urlObj = populateUrlMetadata()

const newIssueLink = '[' + repo + ']' + '(' + newIssue.html_url + ')'
const comment = {
body: closeOriginal ? 'Kamino closed and cloned this issue to ' + repo : 'Kamino cloned this issue to ' + repo
body: closeOriginal ? 'Kamino closed and cloned this issue to ' + newIssueLink: 'Kamino cloned this issue to ' + newIssueLink
}

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

0 comments on commit 46119d1

Please sign in to comment.