Skip to content

Do not parse PR body to find issues to close#5046

Open
takaram wants to merge 2 commits intophpstan:2.1.xfrom
takaram:close-issue-bot
Open

Do not parse PR body to find issues to close#5046
takaram wants to merge 2 commits intophpstan:2.1.xfrom
takaram:close-issue-bot

Conversation

@takaram
Copy link
Contributor

@takaram takaram commented Feb 25, 2026

Extracting linked issues from PR body is very hard as there are variety of syntaxes to link an issue.
https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

Especially some PRs use phpstan/phpstan#<issue number> format instead of the issue URL.

We should use closingIssuesReferences instead.

Extracting linked issues from PR body is very hard as there are
variety of syntaxes to link an issue.
https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

We should use `closingIssuesReferences` instead.
- Avoid `${{ ... }}` syntax inside `run:`
- Use mapfile command rather than `URL=( $(...) )`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant