A Copilot coding agent opened a draft pull request for an assigned issue. The team expects tests to run immediately, but the integration environment should request approval only after the PR is ready for review. The repository owner sees this workflow run. Which option best explains the behaviour? Select one answer.
Workflow: copilot-agent-control
Event: pull_request
Action: synchronize
Actor: github-copilot[bot]
Pull request draft: true
Jobs:
validate
Status: success
Steps:
checkout: success
npm ci: success
npm test: success
integration-gate
Condition: github.event.pull_request.draft == false
Result: skipped
Branch protection:
Required check: validate
Required check: integration-gate
Pull request merge state:
validate: success
integration-gate: expected — waiting for status to be reportedChoose an answer
Tap an option to check your answer.
Correct answer: The skipped required gate leaves merging blocked.
Why this is the answer
The integration-gate job is configured to run only when the pull request is not a draft (github.event.pullrequest.draft == false). Since the pull request is currently a draft, this job is skipped. However, branch protection requires both validate and integration-gate checks to pass before merging. Because integration-gate is skipped and thus hasn't reported a successful status, the merge is blocked, showing "expected — waiting for status to be reported." This aligns with the team's expectation that integration approval is only needed when the PR is ready for review (i.e., no longer a draft). The Copilot actor has sufficient permissions to open the PR and trigger the workflow. There's no indication of an environment reviewer rejecting deployment, as the integration-gate job, which would typically handle deployments or approvals, hasn't even run. The workflow trigger on: pullrequest with types: [synchronize] correctly processes commits pushed to the PR branch, including those from Copilot.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed