mergeable icon indicating copy to clipboard operation
mergeable copied to clipboard

Check if files in base branch changed

Open dudicoco opened this issue 3 years ago • 1 comments

Hi,

We have a monorepo with a lot of activity going on within it, we would like to turn off the native GitHub "require branches to be up to date" branch protection feature in order to prevent having to constantly update your branch when the base branch changes. However, in doing that we would like to add some protections which would force PRs to be updated when certain files change.

Is it possible to have mergeable check if certain files changed in the base branch and fail the status check accordingly?

For example, every time we change a workflow file within the .github/workflows dir in the base branch, we would like to force all open PRs to rerun their checks with the latest workflows from the base branch.

dudicoco avatar Feb 15 '22 10:02 dudicoco

Hey @dudicoco

Is it possible to have mergeable check if certain files changed in the base branch and fail the status check accordingly?

No, we don't have that capability at the moment. I think we can check the file in base branch but off the top of my head, i don't know how feasible is it to force all open PRs to rerun if base branch changes, maybe this could be done after the PR that is changing the relevant file is merged?

i.e. when the PR that contain a certain file is merged, force rerun mergeable checks on all open PR

shine2lay avatar Feb 15 '22 18:02 shine2lay