Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically copy labels from original PR to backported PRs
None of the automatically generated PRs for backports can trigger the labeler flow, which resulted in them not being added to the automatic release notes unless manual work was done to update the labels. The reason is that an action in a workflow can't trigger another action, and that's by design. As referenced in an issue from the `create-pull-request` project [1]: > An action in a workflow run can't trigger a new workflow run. For > example, if an action pushes code using the repository's GITHUB_TOKEN, a > new workflow will not run even when the repository contains a workflow > configured to run when push events occur. On that issue, there's also a reference from a response from GH support: > This is a deliberate decision by the Actions team in order to prevent accidental "infinite loop" situations, and as an anti-abuse measure. > You will be able to work around this using a Personal Access Token in > place of the provided token. As this needs to be explicitly provided it > will remove any potential for possible abuse, so we recommend using this > method when needing to create a pull request. As said, we could work around that by using a personal token, which could be scoped to the `solidusio/solidus` repository. However, we don't think that would be a good idea because of security & practical concerns. Thanks to upstream work in the backporter tool [2] we can now copy the labels from the original PR to the backported PRs, avoiding the need for manual work. [1] - peter-evans/create-pull-request#48 [2] - sorenlouv/backport#456 (comment)
- Loading branch information