Skip to content

Commit 43afdf2

Browse files
committed
Merge remote-tracking branch 'origin/dev/2.x' into dev/2.x
2 parents bdc7e6f + 04a01d8 commit 43afdf2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Dto/GithubIssue.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ public function __construct(
2020

2121
public static function fromMantisIssue(MantisIssue $issue): GithubIssue
2222
{
23-
$rows = [
24-
'| Mantis Ticket |',
25-
'|:-------------:|',
26-
'| [MANTIS-' . $issue->getId() . '](' . $issue->getIssueUrl() . ') |',
27-
];
28-
$table = implode(PHP_EOL, $rows);
23+
$issueBadge = '[![MANTIS-' . $issue->getId() . '](https://img.shields.io/badge/MANTIS-' . $issue->getId() . '-green?style=for-the-badge)](' . $issue->getIssueUrl() . ')';
24+
2925
return new self(
3026
title: '[MANTIS-' . $issue->getId() . '] [' . $issue->getProject() . '] ' . $issue->getSummary(),
31-
description: $issue->getDescription() . PHP_EOL . PHP_EOL . $table,
27+
description: $issue->getDescription() . PHP_EOL . PHP_EOL . $issueBadge,
3228
);
3329
}
3430

0 commit comments

Comments
 (0)