agent-orchestrator/packages/plugins/scm-github/test
i-trytoohard 9510863184 fix(scm-github): drop fork PRs and default-branch sessions from detectPR
`gh pr list --head <branch>` matches PRs across all forks, so when a
session's branch is the project default (typically "main") we'd match
unrelated contributors' fork PRs. Two defenses:

1. Short-circuit when session.branch === project.defaultBranch — a worker
   session should never legitimately have its head ref on the default
   branch, and matching there is unsafe by construction.
2. Request `headRepositoryOwner` from gh and discard PRs whose head owner
   differs from the project repo owner. Fork PRs are someone else's work.

Refs #1724.
2026-05-08 02:51:42 +05:30
..
graphql-batch.integration.test.ts feat(core): opt-in gh CLI tracer + scm/tracker migration (Phase A1a) (#1238) 2026-04-25 18:57:04 +05:30
graphql-batch.test.ts fix(scm-github): silence HTTP 304 warnings in ETag guards (#1581) 2026-05-03 18:30:27 +05:30
index.test.ts fix(scm-github): drop fork PRs and default-branch sessions from detectPR 2026-05-08 02:51:42 +05:30