agent-orchestrator/packages/plugins/scm-github/test
i-trytoohard 4043fa4a47 fix(scm-github,session-manager): tighten fork filter; add closed-PR restore test
Address PR review:

1. Strict-by-default fork filter in `detectPR` — require the head owner
   to be a non-empty string AND match the project repo owner. A null,
   undefined, or empty `headRepositoryOwner.login` (e.g. deleted account
   or future gh API change) no longer silently passes the filter.
2. Update existing same-repo cache/draft tests to include
   `headRepositoryOwner: { login: "acme" }` since the strict filter
   would otherwise reject them as fork PRs.
3. Add a regression test that null/missing `headRepositoryOwner` is
   rejected.
4. Add an independent restore test for the `pr.state === "closed"`
   branch of session-manager's step 3a (previously only `merged` was
   covered).

Refs #1724.
2026-05-08 03:08:33 +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,session-manager): tighten fork filter; add closed-PR restore test 2026-05-08 03:08:33 +05:30