agent-orchestrator/packages/plugins/scm-github
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
..
src fix(scm-github): drop fork PRs and default-branch sessions from detectPR 2026-05-08 02:51:42 +05:30
test fix(scm-github): drop fork PRs and default-branch sessions from detectPR 2026-05-08 02:51:42 +05:30
.gitignore fix: added GraphQL batch PRfeat: add GraphQL batch PR enrichment for orchestrator polling enrichment for orchestrator polling (fixes #608) (#637) 2026-03-30 00:31:04 +05:30
CHANGELOG.md chore: release 0.6.0 (#1723) 2026-05-08 02:37:44 +05:30
package.json chore: release 0.6.0 (#1723) 2026-05-08 02:37:44 +05:30
tsconfig.json fix: scope node types to node packages 2026-04-13 18:25:21 +05:30