Skip to content

Commit

Permalink
Fixed issue with cloning not working
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmurphy01 committed Apr 17, 2017
1 parent 6f62d4a commit 7bae31a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ function getGithubIssue(repo) {
title: issue.title,
body: 'From ' + urlObj.currentRepo + ': ' + urlObj.organization + '/' + urlObj.currentRepo + '#' + urlObj.issueNumber + " \n\n" + issue.body,
milestone: issue.milestone,
labels: issue.labels,
assignees: issue.assignees
labels: issue.labels
}

console.log(newIssue)
createGithubIssue(newIssue, repo, issue)
},
(error) => {
Expand Down Expand Up @@ -149,12 +148,12 @@ function closeGithubIssue(oldIssue) {
}

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

const comment = {
body: 'Kamino closed and cloned this issue to ' + org + '/' + repo
body: 'Kamino closed and cloned this issue to ' + urlObj.organization + '/' + repo
}

const urlObj = populateUrlMetadata()

ajaxRequest('POST', comment, 'https://api.github.com/repos/' + urlObj.organization + '/' + urlObj.currentRepo + '/issues/' + urlObj.issueNumber + '/comments',
(response) => {
// if success, close the existing issue and open new in a new tab
Expand Down

0 comments on commit 7bae31a

Please sign in to comment.