devops-infra / action-pull-request

GitHub Action that will create a pull request from the current branch
https://christophshyper.github.io/
MIT License
74 stars 21 forks source link

Issue linking not working #156

Open alt-13 opened 6 months ago

alt-13 commented 6 months ago

If you create/edit a pull request manually and add a closing statement in the pull request body the pullRequest.closingIssuesReferences is updated.

When creating/editing a pull request with this action these closingIssuesReferences are not updated and therefore the issues will not be closed if the pull request is merged.

image

My workflow: PR to beta -> PR is merged to beta -> this action is executed and adds all issues mentioned in the PR with a closing statement to a new/existing PR to main -> PR to main is merged for release but issues are not closed because they are not contained in the closingIssuesReferences (Development bottom right)

The pull request was edited after the first 2 closing statements were added by this action. Therefore these 2 issues are linked in the section Development. For the last 2 issues the body PR to main was updated by the action but they are not linked in the closingIssuesReferences section (Developement).