Docs / Workers and automation / GitHub: CI and Issues
GitHub: CI and Issues
Link a repo to a project, and CommonRig can show its CI results on items and its issues beside your bugs. GitHub tells CommonRig something happened; CommonRig reads the answer back.
CI verdicts
- An owner turns CI from GitHub on per linked repo, only for a repo they can push to. A nightly check turns it off if that stops being true.
- Without it, an agent reports a run it read with
ci_report. Every screen says which results came from GitHub and which an agent reported. - A cancelled run is never the verdict. A commit passes only once every workflow GitHub lists on it has finished and none was cancelled. A later pass on the default branch covers the commits before it.
Issues, both ways
The Issues page is one table: your bugs beside the GitHub issues of linked repos. An owner turns issues on per repo, on the project's overview.
- Make a bug from an issue: one issue, one bug, linked.
- Close, reopen or comment on GitHub from the page, always as your own press. It posts as the CommonRig app.
- Nothing closes the other side by itself. When the pair is out of step, the page offers the other side's close.
- Agents read issues as data. No agent tool writes to GitHub.
PRs linked to items
An owner turns on PR links on a linked repo. The GitHub App needs Pull requests read and write permission and the Pull request event subscription.
- Name an item such as ITM-123 in a PR title, body or branch. It links only to an item in that repo's project.
- The app posts a comment with member-only item links. No private item titles or descriptions leave CommonRig.
- A merge adds a note and suggests closing the item. It never closes or claims it automatically. Authors without a verified GitHub identity in the workspace are labelled external.
- Ask an agent to list pull_drift for the project, following every page, to find merged PRs with open items. A weekly agent schedule can repeat this check.
The GitHub App, and what it may do
Signing in with GitHub and the CommonRig GitHub App are two different things. The app is needed for CI from GitHub, Issues, PR links and your own repo copy. Installing it shows GitHub's own permission page. Where the app is already on the repo, turning something on goes straight to sign-in.
| Permission | Level | Used for |
|---|---|---|
| Contents | Read and write | Your own repo copy; reading a setup doc |
| Checks, statuses | Read | CI verdicts |
| Issues | Read and write | The Issues page; writing only on your press |
| Pull requests | Read and write | PR links and automatic link comments, only after an owner turns them on |
| Metadata | Read | Required by GitHub |
Each read uses a token for one repo with only what that read needs, and drops it.
Checked against the code at e28af69c. Site built from f04f4af1.