diff --git a/app/Traits/Controllers/HasGitlabIssue.php b/app/Traits/Controllers/HasGitlabIssue.php index a664f83..b334f3a 100644 --- a/app/Traits/Controllers/HasGitlabIssue.php +++ b/app/Traits/Controllers/HasGitlabIssue.php @@ -17,7 +17,7 @@ trait HasGitlabIssue */ public function getGitlabIssue(int $projectId, string $issueUrl): array { - if (!preg_match('/\/issues\/(\d+)/', $issueUrl, $matches)) { return []; } + if (!preg_match('/\/(?:issues|work_items)\/(\d+)/', $issueUrl, $matches)) { return []; } $gitlabIssue = GitLab::issues()->show($projectId, (int) $matches[1]);