s it possible to enable branch protection rules at the organisation level in Github so that all repositories part of that organisation inherit these rules for the applied branches. Right now its really a hassle to enable those same set of rules on a per repo basis for same set of branches.
Unfortunately there is no organization level default option to set a branch protection for all repositories in an org. If this is something you don't want to repetitively do by hand, you can take a look at the GitHub API for Branch Protection... but you would need to script it yourself
✨ *Question of the day* ✨: do you follow any other best practice?
I had to watch it twice cause it had so much useful information! Thank you!
Glad it was helpful!
can you please perform these steps practically that you showed in slides so it could be more easy for us to understand?
I will see what I can do :) I am planning on a new video on this because GitHub has introduced a number of changes since this vide
Thanks for the video. 🙂How can I prevent for all members ability for deleting any brunches?
The only way to disable someone to delete branches is to not give them Write access :(
Excellent video Dave!
Glad you liked it!
s it possible to enable branch protection rules at the organisation level in Github so that all repositories part of that organisation inherit these rules for the applied branches. Right now its really a hassle to enable those same set of rules on a per repo basis for same set of branches.
Unfortunately there is no organization level default option to set a branch protection for all repositories in an org. If this is something you don't want to repetitively do by hand, you can take a look at the GitHub API for Branch Protection... but you would need to script it yourself