Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev/2.x' into dev/2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Jan 19, 2024
2 parents bdc7e6f + 04a01d8 commit 43afdf2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Dto/GithubIssue.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ public function __construct(

public static function fromMantisIssue(MantisIssue $issue): GithubIssue
{
$rows = [
'| Mantis Ticket |',
'|:-------------:|',
'| [MANTIS-' . $issue->getId() . '](' . $issue->getIssueUrl() . ') |',
];
$table = implode(PHP_EOL, $rows);
$issueBadge = '[![MANTIS-' . $issue->getId() . '](https://img.shields.io/badge/MANTIS-' . $issue->getId() . '-green?style=for-the-badge)](' . $issue->getIssueUrl() . ')';

return new self(
title: '[MANTIS-' . $issue->getId() . '] [' . $issue->getProject() . '] ' . $issue->getSummary(),
description: $issue->getDescription() . PHP_EOL . PHP_EOL . $table,
description: $issue->getDescription() . PHP_EOL . PHP_EOL . $issueBadge,
);
}

Expand Down

0 comments on commit 43afdf2

Please sign in to comment.