GitHub branch protection and auto-merge: stop AI from changing main directly and require passing CI before merge
When an AI tool works through your GitHub account, GitHub treats its actions as yours. Without rules in the repo, the AI can change main directly and can merge code whose tests fai …