From 5dc047a06444adb67e16984895f120dc46e2514a Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Mon, 25 Feb 2019 13:46:00 +0100 Subject: [PATCH] Cleanups --- m2gl.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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; -- 1.7.10.4