agent-orchestrator/packages/plugins/scm-github
adil 25ae6013db feat(scm-github): replace repo-scoped Guard 1 with PR-scoped ETag checks (D4)
Guard 1 now checks GET /repos/{owner}/{repo}/pulls/{number} per PR
instead of GET /repos/{owner}/{repo}/pulls?... per repo. This means:

- Only changed PRs flow into the GraphQL batch
- Unchanged PRs are served directly from the enrichment cache
- shouldRefreshPREnrichment returns a refresh plan (prsToRefresh +
  cachedResults) instead of a boolean

When 1 of 10 PRs changes, the old guard refreshed all 10 via GraphQL.
Now only the 1 changed PR is fetched; the other 9 are served from cache
at zero GraphQL cost.

Trade-off: more REST guard calls (1 per PR instead of 1 per repo), but
304 responses cost zero rate limit points.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-20 20:53:24 +05:30
..
src feat(scm-github): replace repo-scoped Guard 1 with PR-scoped ETag checks (D4) 2026-04-20 20:53:24 +05:30
test feat(scm-github): replace repo-scoped Guard 1 with PR-scoped ETag checks (D4) 2026-04-20 20:53:24 +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: version packages 2026-03-20 15:47:55 +00:00
package.json chore: bump all package versions to 0.2.5 (#1190) 2026-04-13 05:47:08 +05:30
tsconfig.json fix: scope node types to node packages 2026-04-13 18:25:21 +05:30