Reusable workflow contract¶
The triggers,
workflow_callinputs and secrets, job permissions, timeouts and concurrency of everyclaude*.ymlworkflow, generated from the workflow files.
What each workflow does, and the gates behind each trigger, is explained in docs/workflows.md. Everything listed here is public API: add, don't rename. A caller passes secrets: inherit and grants its job at least the permissions below, because a reusable workflow cannot exceed its caller's grants.
claude-auto-merge.yml — Claude Auto-Merge¶
Call it as uses: bamr87/githubai/.github/workflows/claude-auto-merge.yml@main.
Triggers: pull_request (opened, labeled) · workflow_dispatch · workflow_call
workflow_call inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
pr_number |
string | no | — | PR number to evaluate; defaults to the triggering PR |
config_path |
string | no | .github/githubai.yml |
Path to the repo's githubai.yml |
workflow_dispatch inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
pr_number |
string | yes | — | Pull request number to evaluate |
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
evaluate |
actions: read, checks: read, contents: write, id-token: write, issues: read, pull-requests: write |
20 |
Concurrency: job evaluate, group claude-auto-merge-${{ github.event.pull_request.number || inputs.pr_number || github.run_id }}; cancel in progress: yes.
claude-implement.yml — Claude Implement¶
Call it as uses: bamr87/githubai/.github/workflows/claude-implement.yml@main.
Triggers: issues (labeled) · workflow_dispatch · workflow_call
workflow_call inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
issue_number |
string | no | — | Issue number to implement; defaults to the triggering issue |
trigger_label |
string | no | claude:implement |
Label that authorizes implementation |
config_path |
string | no | .github/githubai.yml |
Path to the repo's githubai.yml |
workflow_dispatch inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
issue_number |
string | yes | — | Issue number to implement |
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
implement |
actions: read, contents: write, id-token: write, issues: write, pull-requests: write |
90 |
Concurrency: job implement, group claude-implement-${{ github.event.issue.number || inputs.issue_number || github.run_id }}; cancel in progress: no.
claude-maintenance.yml — Claude Maintenance¶
Call it as uses: bamr87/githubai/.github/workflows/claude-maintenance.yml@main.
Triggers: schedule (cron 40 16 * * 1) · workflow_dispatch · workflow_call
workflow_call inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
tasks |
string | no | — | Comma-separated task subset (default = all enabled in config) |
config_path |
string | no | .github/githubai.yml |
Path to the repo's githubai.yml |
workflow_dispatch inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
tasks |
string | no | — | Comma-separated task subset (default = all enabled in config) |
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
maintain |
actions: read, contents: write, id-token: write, issues: write, pull-requests: write |
45 |
Concurrency: group claude-maintenance-${{ github.ref }}; cancel in progress: no.
claude-release.yml — Claude Release¶
Call it as uses: bamr87/githubai/.github/workflows/claude-release.yml@main.
Triggers: push (tags v*) · workflow_dispatch · workflow_call
workflow_call inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
bump |
string | no | auto |
Semver bump for the release PR (prepare mode) |
config_path |
string | no | .github/githubai.yml |
Path to the repo's githubai.yml |
workflow_dispatch inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
bump |
choice (auto, major, minor, patch) |
no | auto |
Semver bump for the release PR |
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
release |
contents: write, id-token: write, issues: read, pull-requests: write |
30 |
Concurrency: group claude-release-${{ github.ref }}; cancel in progress: no.
claude-review.yml — Claude Review¶
Call it as uses: bamr87/githubai/.github/workflows/claude-review.yml@main.
Triggers: pull_request (opened, ready_for_review, labeled) · workflow_dispatch · workflow_call
workflow_call inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
pr_number |
string | no | — | PR number to review; defaults to the triggering PR |
config_path |
string | no | .github/githubai.yml |
Path to the repo's githubai.yml |
workflow_dispatch inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
pr_number |
string | yes | — | Pull request number to review |
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
review |
actions: read, contents: read, id-token: write, issues: read, pull-requests: write |
30 |
Concurrency: job review, group claude-review-${{ github.event.pull_request.number || inputs.pr_number || github.run_id }}; cancel in progress: yes.
claude-triage.yml — Claude Triage¶
Call it as uses: bamr87/githubai/.github/workflows/claude-triage.yml@main.
Triggers: issues (opened, reopened) · workflow_dispatch · workflow_call
workflow_call inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
issue_number |
string | no | — | Issue number to triage; defaults to the triggering issue |
config_path |
string | no | .github/githubai.yml |
Path to the repo's githubai.yml |
workflow_dispatch inputs:
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
issue_number |
string | yes | — | Issue number to triage (backfill) |
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
triage |
contents: read, id-token: write, issues: write |
15 |
Concurrency: group claude-triage-${{ github.event.issue.number || inputs.issue_number || github.run_id }}; cancel in progress: no.
claude.yml — Claude¶
Call it as uses: bamr87/githubai/.github/workflows/claude.yml@main.
Triggers: issue_comment (created) · pull_request_review_comment (created) · pull_request_review (submitted) · issues (opened, assigned) · workflow_call
workflow_call inputs: none.
Secrets:
| Secret | Required | Description |
|---|---|---|
CLAUDE_CODE_OAUTH_TOKEN |
no | Claude Code OAuth token from claude setup-token (preferred) |
ANTHROPIC_API_KEY |
no | Ignored for now (OAuth only; ANTHROPIC_API_KEY disabled 2026-11-15) |
Jobs:
| Job | Permissions | Timeout (min) |
|---|---|---|
claude |
actions: read, contents: read, id-token: write, issues: read, pull-requests: read |
30 |
Concurrency: job claude, group claude-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}; cancel in progress: no.