Skip to content

ci: gate E2E handoff on copilot/ branch instead of PR author - #2308

Merged
zhaojing1987 merged 1 commit into
mainfrom
ci/e2e-handoff-branch-gate
Nov 17, 2026
Merged

zhaojing1987 merged 1 commit into
mainfrom
ci/e2e-handoff-branch-gate

Conversation

@zhaojing1987

@zhaojing1987 zhaojing1987 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

What Changed

  • provision-e2e and "Mark successful PR ready" no longer require pull_request_target PR author Copilot; they gate on same-repository copilot/ branches plus the handoff event.
  • The handoff job now verifies the latest cloud agent session for every copilot/ branch instead of only bot-authored PRs.
  • Tests and the three docs that described the author gate are updated.

Why Changed

GitHub's cloud agent runtime now commits and opens its PR as the triggering user (observed 2026-11-17: commit author chendelin1982, PR author chendelin1982, no assigned Copilot, no completion-time review_requested). The author gate therefore never matched, so draft PRs stayed draft and E2E provisioning plus the WeCom server notification were skipped for PRs #2295-#2307.

Automated Validation

  • pytest tests/build tests/skills: 283 passed.
  • New regression test covers a user-authored copilot/ branch handoff.

Risk

Cost control still relies on the same-repository copilot/ branch prefix plus an explicit review_requested handoff; nothing provisions from ordinary pushes or human drafts.

Cloud agent sessions now commit and open their PR as the triggering user, so the
user.login == 'Copilot' gate silently disabled the Ready transition and E2E
provisioning. Key the handoff on the same-repository copilot/ branch plus the
pull_request_target event, and verify the latest agent session for every
copilot/ handoff instead of only bot-authored PRs.
@zhaojing1987
zhaojing1987 merged commit 084b224 into main Nov 17, 2026
7 checks passed
@zhaojing1987
zhaojing1987 deleted the ci/e2e-handoff-branch-gate branch November 17, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant