Skip to content

Commit

Permalink
Merge pull request #49 from boherm/improve-check-table-description
Browse files Browse the repository at this point in the history
Improve check table description
  • Loading branch information
boherm authored Jun 14, 2024
2 parents 3d6d91f + 125640b commit 6985a2f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public function getSponsor(): ?string

public function isLinkedIssuesNeeded(): bool
{
// If "n/a" is found, it means that the PR doesn't need an issue anyway.
if ('n/a' === $this->extractWithRegex('Fixed issue or discussion')) {
// If "n/a" or "~" is found, it means that the PR doesn't need an issue anyway.
if (in_array(strtolower($this->extractWithRegex('Fixed issue or discussion')), ['n/a', '~'])) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,23 @@ public static function provideTestHandle(): array
true,
['Feature'],
],
[
new PullRequestId(
repositoryOwner: 'PrestaShop',
repositoryName: 'PrestaShop',
pullRequestNumber: 'fake'
),
'
| Type? | new feature
| Category? | BO
| Fixed issue or discussion? | ~
',
[],
[],
false,
true,
['Feature'],
],
[
new PullRequestId(
repositoryOwner: 'PrestaShop',
Expand Down

0 comments on commit 6985a2f

Please sign in to comment.