@conclave-ai/scm-github
v0.8.2
Published
Conclave AI SCM adapter for GitHub — resolve PR state for automatic outcome capture.
Readme
@conclave-ai/scm-github
GitHub SCM adapter for Conclave AI. Resolves PR state for automatic
outcome capture — closes the gap where users previously had to run
conclave record-outcome manually after every PR landed.
Install
pnpm add @conclave-ai/scm-github @conclave-ai/coreUsage
import { FileSystemMemoryStore, OutcomeWriter } from "@conclave-ai/core";
import { pollOutcomes } from "@conclave-ai/scm-github";
const store = new FileSystemMemoryStore({ root: ".conclave" });
const writer = new OutcomeWriter({ store });
const summary = await pollOutcomes({ store, writer });
console.log(`merged=${summary.merged} rejected=${summary.rejected} reworked=${summary.reworked}`);Dependency
Uses the gh CLI for auth + network. Same dependency as
@conclave-ai/cli already requires for conclave review --pr N, so
there is no new auth setup — gh auth login once is enough.
Transition rules
| Past observation | Current state | Classified outcome |
|---|---|---|
| any | merged | merged |
| any | closed without merge | rejected |
| any | open, head moved since review | reworked |
| any | open, head unchanged | pending (no-op) |
