Skip to content

Commit ac618c3

Browse files
committed
feat(): Sync tickets multiple times
1 parent 00b6411 commit ac618c3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Diff for: src/Command/CreateGithubIssueFromMantisIssue.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@ protected function handle(): int
7575
continue;
7676
}
7777

78-
if (!empty($mantisIssue->getUpstreamTicket())) {
79-
$issues[] = [
80-
'id' => $id,
81-
'icon' => '<comment>!</comment>',
82-
'message' => '<comment>Mantis issue already synchronized.</comment>',
83-
'issue' => $mantisIssue->getUpstreamTicket(),
84-
];
85-
continue;
86-
}
87-
8878
$newGithubIssue = GithubIssue::fromMantisIssue($mantisIssue);
8979

9080
$filteredLabels = array_values(array_filter($labels, function ($label) use ($mantisIssue) {
@@ -104,7 +94,7 @@ protected function handle(): int
10494
continue;
10595
}
10696

107-
$mantisIssue->setUpstreamTicket($newGithubIssue->getIssueUrl());
97+
$mantisIssue->setUpstreamTicket(trim($mantisIssue->getUpstreamTicket() . ' ' . $newGithubIssue->getIssueUrl()));
10898
$patched = $this->mantisConnector->patchUpstreamField($mantisIssue);
10999

110100
if ($patched === false) {

0 commit comments

Comments
 (0)