mergify icon indicating copy to clipboard operation
mergify copied to clipboard

[RFE] Use the Mergify config from the pull request destination branch rather than the default branch

Open bowlofeggs opened this issue 6 years ago • 1 comments

I've observed that Mergify uses the .mergify.yml file from my project's default branch, rather than using the .mergify.yml from the pull request's target branch. It would be nice if it used the policy from the destination branch so that we can keep the rule list simpler. I can achieve what I want by setting different rules for different branches in the default branch's .mergify.yml, but this makes the config more complex there.

bowlofeggs avatar Feb 14 '19 19:02 bowlofeggs

This would be nice to have.

As docs state: "In the the default repository branch configured on GitHub — usually master.". However as the first stage for enabling mergify to a repository, would be to test it on a branch and creating PR against this branch to test the configuration and defined pull request workflow. There is a simulator but someone would rather test it on PRs to get the config prototype working.

0xc0170 avatar Jan 14 '20 12:01 0xc0170