X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=m2gl.js;fp=m2gl.js;h=8f46ec2406e70bdcaf81d2657509b361285b299e;hb=5dc047a06444adb67e16984895f120dc46e2514a;hp=c172d0a3f2cbcf511508492f18a81494a57f720c;hpb=d77e95b47f36c74b43ec9cd4ac1f0fe5c2bbaaa2;p=mantis2gitlab diff --git a/m2gl.js b/m2gl.js index c172d0a..8f46ec2 100644 --- a/m2gl.js +++ b/m2gl.js @@ -231,8 +231,6 @@ function importIssue(mantisIssue) { return getIssue(gitLab.project.id, issueId) .then(function(gitLabIssue) { - //console.log(data.title + " -- " + issueId); - //console.log(data.title + " -- " + issueId + " -- " + gitLab.gitlabIssues[issueId]); if (gitLab.gitlabIssues[issueId]) { // update console.log("updating: " + data.title + " (Issueid: " + issueId + ")"); @@ -258,7 +256,6 @@ function insertSkippedIssues(issueId) { return Q(); } - //console.warn(("Skipping Missing Mantis Issue (<= #" + issueId + ") ...").yellow); console.log(("Adding placeholder ...").yellow); var data = { @@ -317,8 +314,6 @@ function getRemainingGitLabProjectIssues(page, per_page) { var data = { page: page, per_page: per_page, - // FIXME: schnalke - //order_by: 'id', private_token: gitlabAdminPrivateToken, sudo: gitlabSudo }; return rest.get(url, {data: data}) @@ -356,7 +351,7 @@ function getDescription(row) { attributes.push("Reported By: " + value); } -/* +/* omit ... if (value = row["Assigned To"]) { attributes.push("Assigned To: " + value); } @@ -386,11 +381,8 @@ function getDescription(row) { description = description.replace(/\\t/g, " "); description = description.replace(/``/g, '"'); description = description.replace(/''/g, '"'); - description = description.replace(/\n *----/g, "\n>>>"); - //description = description.replace(/schnalke/g, "@MSchnalke"); - Object.keys(config.users).forEach(function(muser) { if (muser != "") { var gluser = config.users[muser].gl_username;