Reviews API
Every reviewer’s findings in one list; fix or dispute each, and BareCI answers the reviewer.
Each tool below is an MCP tool on https://api.bareci.com/mcp and, unless it is marked local, a route of the https://api.bareci.com/v1 JSON API. The bareci CLI calls the same routes.
| Tool | What it does |
|---|---|
findings |
Every reviewer’s findings on a pull request (CodePanel, GitHub reviews and bots, webhook reviewers), merged and deduplicated. |
findings_refresh |
Read every reviewer’s findings now instead of waiting for the next webhook. |
finding_resolve |
Answer a finding: fixed with the commit that fixes it, or disputed with the reason. |
reviews_request |
Ask the configured reviewers (or the ones named) to review the pull request’s head now. |
review_config |
A repository’s reviewers, review policy (blocking severities, required reviewers) and Gate settings (required checks, preview, merge queue). |
findings
Review findings. Every reviewer’s findings on a pull request (CodePanel, GitHub reviews and bots, webhook reviewers), merged and deduplicated. Fix or dispute each open one, then finding_resolve.
- HTTP:
GET /v1/changes/{owner}/{name}/{pr}/findings - Scope:
read - Reads only
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name, e.g. acme/web |
pr |
integer | yes | Pull request number (min 1) |
all |
boolean | no | Include fixed and resolved findings |
Answer
| Field | Type | Required | Description |
|---|---|---|---|
headSha |
string | no | Head reviewed |
findings |
any[] | no | [{id, file, line, severity, title, body, fixHint, status, blocking, …}] |
Every answer also carries next: the next action, usually a tool and its arguments.
Example
{ "method": "tools/call", "params": { "name": "findings", "arguments": { "repo": "acme/web", "pr": 1 } }}Next: finding_resolve for each open finding.
findings_refresh
Refresh findings. Read every reviewer’s findings now instead of waiting for the next webhook.
- HTTP:
POST /v1/changes/{owner}/{name}/{pr}/findings/refresh - Scope:
run - Changes state
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name, e.g. acme/web |
pr |
integer | yes | Pull request number (min 1) |
Answer
| Field | Type | Required | Description |
|---|---|---|---|
refreshed |
any[] | no | Reviewers read |
errors |
any[] | no | Reviewers that failed |
findings |
any[] | no | Findings |
Every answer also carries next: the next action, usually a tool and its arguments.
Example
{ "method": "tools/call", "params": { "name": "findings_refresh", "arguments": { "repo": "acme/web", "pr": 1 } }}Next: findings.
finding_resolve
Resolve a finding. Answer a finding: fixed with the commit that fixes it, or disputed with the reason. BareCI posts the answer to every reviewer that raised it (CodePanel rating, GitHub thread reply and resolve). dismissed accepts a dispute and needs the operate scope.
- HTTP:
POST /v1/changes/{owner}/{name}/{pr}/findings/{finding} - Scope:
run - Changes state
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name, e.g. acme/web |
pr |
integer | yes | Pull request number (min 1) |
finding |
string | yes | Finding id, f_… |
status |
fixed, disputed, dismissed |
yes | fixed, disputed or dismissed |
sha |
string | no | Commit that fixes it (fixed) |
note |
string | no | What changed (fixed) |
reason |
string | no | Why it is not a problem (disputed) |
Answer
| Field | Type | Required | Description |
|---|---|---|---|
finding |
object | no | The finding |
posted |
any[] | no | [{reviewer, externalId, ok, error?}] |
Every answer also carries next: the next action, usually a tool and its arguments.
Example
{ "method": "tools/call", "params": { "name": "finding_resolve", "arguments": { "repo": "acme/web", "pr": 1, "finding": "<finding>", "status": "fixed" } }}Next: findings for the next one, then ready.
reviews_request
Request reviews. Ask the configured reviewers (or the ones named) to review the pull request’s head now.
- HTTP:
POST /v1/changes/{owner}/{name}/{pr}/reviews - Scope:
run - Changes state
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name, e.g. acme/web |
pr |
integer | yes | Pull request number (min 1) |
reviewers |
string[] | no | Reviewer names, e.g. codepanel; all by default |
Answer
| Field | Type | Required | Description |
|---|---|---|---|
requested |
any[] | no | Reviewers asked |
errors |
any[] | no | Reviewers that failed |
Every answer also carries next: the next action, usually a tool and its arguments.
Example
{ "method": "tools/call", "params": { "name": "reviews_request", "arguments": { "repo": "acme/web", "pr": 1 } }}Next: findings once reviewers answer.
review_config
Review and Gate config. A repository’s reviewers, review policy (blocking severities, required reviewers) and Gate settings (required checks, preview, merge queue).
- HTTP:
GET /v1/changes/{owner}/{name}/config - Scope:
read - Reads only
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name, e.g. acme/web |
Answer
| Field | Type | Required | Description |
|---|---|---|---|
reviewers |
any[] | no | Reviewers |
review |
object | no | Review policy |
gate |
object | no | Gate settings |
Every answer also carries next: the next action, usually a tool and its arguments.
Example
{ "method": "tools/call", "params": { "name": "review_config", "arguments": { "repo": "acme/web" } }}Next: ready for a pull request.