On my GitHub repo, I have two primary branches, develop and main, which represent a testing and production-ready website, respectively. I work on a feature on some branch, say newFeature, and then I merge that into develop, for testing. Other people are also doing this with their branches, so then develop has a number of changes on it. Assuming everything is tested, we want to now add these changes to the production-ready site by merging develop into main.
I want to do this merge from develop to main regularly, say every Friday at 10am. I'll need to check in with anyone who has added changes this week, to ensure that everything is tested and working correctly. To ensure the chance of success here, I'd like to prevent people from merging any more pull requests into develop after Thursday at 2pm.
The devs (who are made aware of this restriction) should then spend the rest of the day testing any changes on develop that are due to be added to main the following morning. If they find any issue with what's already on develop, they can fix the issue on their branch, raise a PR into develop, and ask the repository owner (who is not subject to this restriction) to approve their PR.
Is this scenario, where users (except the repo owner) can't merge PRs into a branch at certain times of the week, possible?