Notify Inkspect when a public pull request opens or changes. Inkspect starts the review once the repository is approved and CI passes on that commit.
- Copy the example workflow to
.github/workflows/inkspect.ymlon the default branch. Keep its workflow, job and step names and thepermissions: {}setting. - Set
ci-workflowto the name of your existing pull-request CI workflow (defaultCI). To pin the action, replace@v1with a published commit’s full SHA. - Open or update a non-draft PR. The first request goes to Inkspect for repository approval. Once enabled, eligible PRs receive feedback on GitHub after their current commit passes CI, subject to the repository’s review limit.
A green action check acknowledges receipt. Review findings appear separately on the PR. Removing the workflow stops new action requests. Contact Inkspect to disable an existing sponsored server-monitor approval.
In .github/workflows/inkspect.yml, replace the if line under jobs.review
with the following condition:
if: ${{ !github.event.pull_request.draft && !startsWith(github.head_ref, 'release/') }}The Inkspect job skips drafts and PRs whose source branch starts with
release/, such as release/1.2.
The action manifest declares one input, ci-workflow, and one output,
request-id. GitHub runs index.mjs directly on Node.js 24.
notification()reads the GitHub event and builds a payload with the repository, PR number, head SHA, workflow run ID, attempt and CI workflow name. Drafts are skipped.sendNotification()posts those identifiers to Inkspect. The action runs without checkout, API keys or token permissions.- On HTTP 202,
main()writes the receipt ID to the step output. Inkspect verifies the PR and workflow against GitHub before reviewing the code.
Run npm test with Node.js 22 or newer. The action tests
use sample events and a stub HTTP client to check payload validation, retry
behavior and receipt handling.