Show answerHide answer
Correct answer: A Claude Code reviews the pull request and posts a structured analysis as a comment, while a human reviewer retains the approval decision under the existing branch-protection rules.
Explanation
Explanation:The core requirement is to integrate AI-assisted review without removing human approval. Option A perfectly satisfies this constraint. It uses Claude Code as an advisory tool that augments the human reviewer by posting a structured analysis (e.g., potential bugs, security issues, style violations) as a comment. Crucially, the human reviewer remains the final gatekeeper, and the existing branch-protection rules (which typically require at least one human approval before merging) remain intact.
Why the other options are incorrect:
B (Automatically merging every PR) explicitly bypasses human approval and violates the branch-protection rules.
C (Disabling branch-protection rules) removes the human approval gate entirely, which is the exact opposite of the stated requirement.
D (Silently deleting PRs) is destructive, bypasses review, and provides no actionable feedback to the author, violating basic DevOps and collaboration principles.
References:
DevOps and GitHub best practices: AI code review tools should be integrated as advisory agents (posting comments/checks) while preserving mandatory human-in-the-loop approval gates via branch protection.