Study FAQ
How can branch protection preserve human review of Copilot document changes?
Also asked as 2
- Which branch controls help ensure Copilot business-document changes receive human review?
- How should I protect the target branch for Copilot-assisted operational documents?
Answer
Prepare the change on a working branch and propose it through a pull request to a target branch with the required review and status-check rules. A working-branch name alone enforces no review, and protected-branch availability depends on repository visibility and plan.
Protected branches are available for public repositories on GitHub Free and for public and private repositories on Pro, Team, Enterprise Cloud and Enterprise Server. Where available, configure the reviews and checks the maintained document requires. Consider dismissing stale approvals or requiring approval of the most recent reviewable push so later edits receive appropriate scrutiny.
Inspect bypass behavior as well. By default, branch-protection restrictions do not apply to repository administrators or custom roles with bypass permission. Check whether the effective rule applies its restrictions to those actors and keep intentional exceptions explicitly owned.
Reviewers still need to examine the document's claims, assumptions and audience: a passing check establishes only the condition it evaluates. GitHub documents restricted working branches and human merging for Copilot cloud-agent draft pull requests, but those protections do not establish the authority of a local Copilot app session or a separately connected tool. Evaluate the actual environment used for the task.
References: About protected branches - GitHub Docs, Risks and mitigations for GitHub Copilot cloud agent - GitHub Docs.
Full explanation
GH-700: Apply Governance Controls to Copilot Business Work
Study guide · GH-700
Read the full explanation