Configure to raise pull request to master from a specific branch only

Hi everyone,

I need to configure protection rule for master branch which supports to raise pull request from a specific branch (ex: develop -> master) only. If any user tries to raise pull request from any other branch to master that should not be allowed.

Is above requirement possible, if yes how to configure.



Hi @raghunathlingutla,

Thanks for being here! No, there’s currently no way to prevent users from creating pull requests like that. I suppose you could configure automation to immediately close PR’s that do not meet your criteria, via webhooks.