Allowing only certain branches to PR merge to main(master) branch

Viewed 504

I'm looking for methods to protect main branch by preventing branches except dev branch from pull request merge to main branch. But I could not find a way to it. Is there any way for it? or is it possible using Github Action?

0 Answers
Related