PR comments
Carrick comments contract-drift findings on your pull requests, posted by the GitHub App, on by default and toggled per project.
The Carrick GitHub App evaluates proposed code changes on pull requests against the project index, posting feedback when cross-service contracts drift or break. Carrick updates a single comment in place on subsequent pushes to prevent pull request comment clutter.
Setup and activation
Carrick runs PR checks in the cloud for every connected repository, with nothing to add to your repositories. PR comments are enabled by default for all connected repositories in a project.
To disable or re-enable PR comments for a project, adjust the PR comments toggle on the project settings page in the Carrick dashboard.
Reported findings
On every pull request push, Carrick compares the proposed changes against the current project index. The comment lists what the pull request changed and what you need to act on:
- Contract risks: Consumer calls whose method or types conflict with the producer, and calls to an endpoint the pull request removes. Each row names what differs, the endpoint, and the file and line.
- Could not compare with main: Risks Carrick could not check against main, so it cannot say whether the pull request introduced them.
- In this PR: Endpoints the pull request adds or removes. A removed endpoint that a call still targets is marked as still used.
- Dependencies: Major version conflicts that the pull request introduced.
The check fails only on a contract risk the pull request introduced. A pull request that changes only Carrick’s setup files never fails, because the risks it lists were already on main and the check concludes neutral. Project-wide findings (endpoints without a consumer, calls with no producer, configuration suggestions) are on the dashboard and not repeated on each pull request.
When the pull request has no contract risk, the comment says so in one line.
Fork pull requests
Carrick does not check pull requests from forks.
Related
- Quickstart covers installing the GitHub App and connecting repositories.
- carrick.json explains how to classify outbound calls as internal or external.
- Task skills details agent skills for investigating and resolving contract drift.