On a pull request that touches controllers, DTOs, or the OpenAPI spec, regenerate the OpenAPI document from code decorators, diff it against the committed spec, classify every change as additive, breaking, or documentation-only, and post inline review threads on breaking changes. A summary report is published as a single pull-request comment.
- Identifier
openapi-drift-check- Version
- 1.0.0
- Steps
- 4
- Triggers
- 2
- openapi
- api
- contract
- drift
- breaking-changes
- documentation
When it runs
pull_request.opened- Settle delay
- 30s after the event
Only when all hold
- pullRequest.isDraft not equals true
- actor.username not in dependabot, dependabot[bot], renovate, renovate[bot], github-actions, github-actions[bot]
- actor.username not contains [bot]
pull_request.synchronize- Settle delay
- 60s after the event
Only when all hold
- pullRequest.isDraft not equals true
- actor.username not in dependabot, dependabot[bot], renovate, renovate[bot], github-actions, github-actions[bot]
- actor.username not contains [bot]
The pipeline
The graph below is the one the workflow opens with in the builder — same steps, same layout, drawn on the same canvas. The run playing through it is a simulation; the branches and conditions are real.
- 01PR Opened / Updated
triggerThe event that starts the run.
- 02Clone Repository
git.cloneShallow-clones the repository at the right ref.
- 03Check OpenAPI Drift
agent.runOne agent works the task with its toolkit.
- 04Publish Drift Report
report.publishPosts or updates a deduplicated report comment.
The agent
OpenAPI Drift Checker
- Base type
- Senior Developer
- Temperature
- 0.2
- Max iterations
- 30
- Tools
- 7
Git provider · 2
get_pull_request_diffGet Pull Request Diff · readadd_pull_request_review_threadAdd PR Review Thread · write
Filesystem · 2
read_fileRead File · readlist_dirList Directory · read
Terminal · 1
run_terminal_cmdRun Terminal Command · write
Code search · 1
code_searchCode Search · read
Status · 1
update_statusUpdate Status · write
Related playbooks
API Deprecation Sweep
Monthly scan of deprecated endpoints, fields, and headers that files removal tickets for anything past its sunset date.
API Contract Breaking-Change Detector
Detects breaking changes in published API contracts, names affected consumers, and labels the PR.
Auto PR Description
Generates structured PR descriptions from the diff, commits, and linked tickets.