Feature request: pull_request base branch change event #35058
Unanswered
stefanfoulis
asked this question in
Actions
Replies: 2 comments
-
This would be useful for an action that runs on every PR in nixpkgs. more context: NixOS/nixpkgs#313345 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would love to get this implemented. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently it is possible to react to the event when a different base branch is assigned to a PR with the
edited
event like so:However this event also fires if the PR
title
ordescription
changes. And it does not fire if new commits are added to thebase
branch.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 thehead
of 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_dispatch
orworkflow_run
and 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.Beta Was this translation helpful? Give feedback.
All reactions