GitHub
GitHub adds remote context to local Git data: PRs you opened or reviewed, issues you commented on, and review verdicts.
Connect
Section titled “Connect”devrecall auth github # OAuth (default)devrecall auth github --method pat # personal access tokendevrecall auth github --method gh-cli # reuse `gh auth token`Three auth methods:
- OAuth — opens a browser, goes through
relay.devrecall.dev. Default. - PAT — generate at
github.com/settings/tokens with
repoandread:userscopes. ghCLI — ifghis installed and authenticated, DevRecall reuses its token viagh auth token. Zero setup.
Tokens are stored in ~/.devrecall/tokens/github.json (0600).
What gets collected
Section titled “What gets collected”| Activity | What |
|---|---|
| Pull requests | Title, description, state, merge date |
| PR reviews | Verdict (approve/request changes), inline comment counts |
| Issues | Issues you authored or were assigned |
| Comments | Comments you wrote on PRs and issues |
Repos are auto-discovered via GET /user/repos?sort=pushed — DevRecall
syncs the most recently active ones first.
Required scopes
Section titled “Required scopes”| Scope | Purpose |
|---|---|
repo | Read PRs and issues from private repos |
read:user | Get your profile and verified email |
Read-only — DevRecall never writes to GitHub.
Rate limits
Section titled “Rate limits”Authenticated users get 5,000 requests/hour. DevRecall:
- Uses conditional requests (
If-Modified-Since/ETag) to avoid quota burn - Syncs incrementally with
sincetimestamps - Backs off exponentially on
429
A typical daily sync is <50 requests.
GitLab and Bitbucket
Section titled “GitLab and Bitbucket”GitLab and Bitbucket use the same shape: devrecall auth gitlab /
devrecall auth bitbucket. Scopes are read_api (GitLab) or app
password (Bitbucket). Activities normalize to the same schema as GitHub.
For self-hosted GitLab, pass --base-url https://gitlab.example.com.