File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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 = '[ . '-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
You can’t perform that action at this time.
0 commit comments