projects
/
mantis2gitlab
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d77e95b
)
Cleanups
author
markus schnalke
<meillo@marmaro.de>
Mon, 25 Feb 2019 12:46:00 +0000
(13:46 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Sun, 2 Jan 2022 09:43:25 +0000
(10:43 +0100)
m2gl.js
patch
|
blob
|
history
diff --git
a/m2gl.js
b/m2gl.js
index
c172d0a
..
8f46ec2
100644
(file)
--- a/
m2gl.js
+++ b/
m2gl.js
@@
-231,8
+231,6
@@
function importIssue(mantisIssue) {
return getIssue(gitLab.project.id, issueId)
.then(function(gitLabIssue) {
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 + ")");
if (gitLab.gitlabIssues[issueId]) {
// update
console.log("updating: " + data.title + " (Issueid: " + issueId + ")");
@@
-258,7
+256,6
@@
function insertSkippedIssues(issueId) {
return Q();
}
return Q();
}
- //console.warn(("Skipping Missing Mantis Issue (<= #" + issueId + ") ...").yellow);
console.log(("Adding placeholder ...").yellow);
var data = {
console.log(("Adding placeholder ...").yellow);
var data = {
@@
-317,8
+314,6
@@
function getRemainingGitLabProjectIssues(page, per_page) {
var data = {
page: page,
per_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})
private_token: gitlabAdminPrivateToken, sudo: gitlabSudo };
return rest.get(url, {data: data})
@@
-356,7
+351,7
@@
function getDescription(row) {
attributes.push("Reported By: " + value);
}
attributes.push("Reported By: " + value);
}
-/*
+/* omit ...
if (value = row["Assigned To"]) {
attributes.push("Assigned To: " + value);
}
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(/\\t/g, " ");
description = description.replace(/``/g, '"');
description = description.replace(/''/g, '"');
-
description = description.replace(/\n *----/g, "\n>>>");
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;
Object.keys(config.users).forEach(function(muser) {
if (muser != "") {
var gluser = config.users[muser].gl_username;