Feature · CI
PR comments and CI gate
geoql/doctor-action@v2 is the GitHub Action that runs the doctor on every pull request, posts the score and findings as a PR comment, and fails the job when the score drops below your threshold or a finding reaches your severity limit. It installs the right CLI for Vue or Nuxt, emits SARIF for GitHub code scanning, and can push the run to your dashboard in the same step.
A complete pull-request workflow
Set pr-comment to true and pick a comment-mode: summary (one sticky comment), review (inline comments on changed lines), or both. The token needs pull-requests: write.
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: geoql/doctor-action@v2
with:
framework: nuxt
threshold: 80
fail-on: error
pr-comment: true
comment-mode: both
api-key: ${{ secrets.DOCTOR_API_KEY }}Two independent gates
threshold is a score gate: the job fails when the score is below the number. fail-on is a count gate: the job fails on any finding at or above error or warn. You can use either, both, or neither.
- Exit 0: score above threshold and nothing at or above fail-on.
- Exit 1: a gate tripped.
- Exit 2: invalid arguments, missing config, or a crash. Treat it like a build failure.
Scaffold it in one command
ci install writes the workflow for you, wired to secrets.DOCTOR_API_KEY. Because it pins the floating @v2 tag, action upgrades arrive without editing the file.
npx -y @geoql/nuxt-doctor ci install --pr --yes