From: markus schnalke Date: Mon, 25 Feb 2019 12:46:00 +0000 (+0100) Subject: Cleanups X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;ds=sidebyside;h=5dc047a06444adb67e16984895f120dc46e2514a;hp=d77e95b47f36c74b43ec9cd4ac1f0fe5c2bbaaa2;p=mantis2gitlab Cleanups --- 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;