I have set up a git repo with protected branches in GitHub: 'main' and 'dev-*' require PRs to merge. However, all merging of other branches should be done to dev-*, and merges to main should only be done from dev-*.
I would like to set up a rule to prevent PRs into main from branches that do not match the pattern dev-*. Is there any way to do this?