Feature request: pull_request base branch change event #35058
Unanswered
stefanfoulis
asked this question in
Actions
Replies: 3 comments
|
This would be useful for an action that runs on every PR in nixpkgs. more context: NixOS/nixpkgs#313345 |
0 replies
|
Would love to get this implemented. |
0 replies
|
Duplicate of the newer https://github.com/orgs/community/discussions/64119 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently it is possible to react to the event when a different base branch is assigned to a PR with the
editedevent like so:However this event also fires if the PR
titleordescriptionchanges. And it does not fire if new commits are added to thebasebranch.My suggestion is to add a new event, called something like
base_changed, that will fire if a different base branch is assigned to the PR or if theheadof the base branch changes.In my case I'd like to use it to re-run CI on a PR using the merge commit if the base changes. I know there are github actions that attempt this, but they all have to resort to workarounds to achieve this. E.g by adding an empty commit to the PR. And they need a Personal Access Token to work.
Another workaround could be to use
workflow_dispatchorworkflow_runand put all the CI logic in those. But when dispatching that shared workflow from various events we loose the "PR context" and all the associated automatic commit statuses. Overall these other approaches are all very cumbersome.All reactions