agent-orchestrator/packages/plugins/scm-github
Prateek 876d38b33e feat: auto-rebase open PR branches when main advances (INT-1364)
Automatically rebases all open PR branches onto the new main after each merge,
detecting conflicts early and pushing clean rebases silently.

- Add rebaseAndPush() and getBranchSHA() to SCM interface
- Implement rebase logic in GitHub SCM plugin with --force-with-lease
- Create MainBranchTracker to detect when main branch advances
- Integrate auto-rebase into lifecycle polling loop (30s cycle)
- Add rebase tracking fields to SessionMetadata
- Add pr.rebased, pr.rebase_conflict, pr.rebase_error event types
- Add rebase-conflicts default reaction (escalates after 30m)
- Skip rebasing when agent is actively processing
- Silent success for clean rebases, urgent notification for conflicts

Safety: uses execFile, --force-with-lease, dirty workspace checks, rollback on
push rejection, aborts on conflicts. All new metadata fields optional for
backwards compatibility.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-20 19:34:54 +05:30
..
src feat: auto-rebase open PR branches when main advances (INT-1364) 2026-02-20 19:34:54 +05:30
test fix: migrate to hash-based project isolation architecture 2026-02-18 00:19:55 +05:30
package.json feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
tsconfig.json feat: scaffold TypeScript monorepo with all plugin interfaces 2026-02-13 17:02:42 +05:30