File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ final class TodoByIssueUrlRule implements Rule
2626 @?[a-zA-Z0-9_-]* # optional username
2727 \s*[:-]?\s* # optional colon or hyphen
2828 \s+ # keyword/version separator
29- (?P<url>https://github.com/(?P<owner>[\S]{2,})/(?P<repo>[\S]+)/issues/(?P<issueNumber>\d+)) # url
29+ (?P<url>https://github.com/(?P<owner>[\S]{2,})/(?P<repo>[\S]+)/( issues|pull) /(?P<issueNumber>\d+)) # url
3030 \s*[:-]?\s* # optional colon or hyphen
3131 (?P<comment>(?:(?!\*+/).)*) # rest of line as comment text, excluding block end
3232 }ix
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ public static function provideErrors(): iterable
4242 'Should have been resolved in https://github.com/staabm/phpstan-todo-by/issues/47 : we need todo something when this issue is resolved. ' ,
4343 5 ,
4444 ],
45- [
46- 'Comment should have been resolved with https://github.com/staabm/phpstan-todo-by/issues/47 . ' ,
45+ 'Comment should have been resolved with https://github.com/staabm/phpstan-todo-by/pull/155 . ' ,
4746 6 ,
4847 ],
4948 ],
Original file line number Diff line number Diff line change 33namespace IssueUrls ;
44
55// TODO: https://github.com/staabm/phpstan-todo-by/issues/47 we need todo something when this issue is resolved
6- // TODO: https://github.com/staabm/phpstan-todo-by/issues/47
6+ // TODO: https://github.com/staabm/phpstan-todo-by/pull/155
77
88// FIXME: https://github.com/staabm/xhprof.io/issues/3 refencing a open issue should not trigger a error
99
You can’t perform that action at this time.
0 commit comments