Skip to content

feat(cursor-approve): five axis prompts and the verdict aggregator script #618

feat(cursor-approve): five axis prompts and the verdict aggregator script

feat(cursor-approve): five axis prompts and the verdict aggregator script #618

name: CI - Cursor Review
# Thin caller enrolling THIS repo in its own reusable cursor-review workflow.
# The review logic (panel matrix, judge consolidation, prompts, scripts) lives
# in cursor-review.yml in this same repo, but the caller still pins it by full
# commit SHA like every external consumer: a local `uses: ./...` path would run
# the PR's OWN copy of the reviewer, letting a PR weaken the panel judging it.
# Pinning to a merged main SHA keeps the reviewer tamper-proof; the bump-callers
# workflow keeps the pin fresh (this repo is enrolled in CURSOR_REVIEW_CALLERS).
#
# Label-triggered for now (apply `cursor-review` to a PR to fire the panel;
# `skip-cursor-review` vetoes) — the reusable's gate at this pin only honors
# label events. Once the pin advances past the commit adding the reusable's
# `run_without_label` input, the auto-bump PR for this file should also add
# `run_without_label: true` under `with:` and widen the trigger types to
# [opened, reopened, ready_for_review, labeled, unlabeled] — this repo has no
# labeling automation, and every non-draft PR here is worth a review (its
# files become other repos' required checks).
on:
pull_request:
types: [labeled, unlabeled]
# Cancel any earlier in-flight review run for the same PR when cursor-review is
# removed or re-applied. Scoping by label name ensures that removing an
# unrelated label does not kill a running cursor review.
concurrency:
group: cursor-review-pr-${{ github.event.pull_request.number }}-${{ github.event.label.name }}
cancel-in-progress: true
jobs:
cursor-review:
permissions:
contents: read
pull-requests: write
uses: Comfy-Org/github-workflows/.github/workflows/cursor-review.yml@55d3b34779fb38b1e133b34d60cc8cd6cd70eb2c # github-workflows main (55d3b34)
with:
# Keep the assets ref in lock-step with the `uses:` ref above.
workflows_ref: 55d3b34779fb38b1e133b34d60cc8cd6cd70eb2c
# No vendored/generated content in this repo; defensive excludes only.
# These live in extra_generated_globs, not diff_excludes: since BE-7633
# diff_excludes leaves the reviewed diff but is still COUNTED against
# diff_size_cap, so it is the back-compat escape hatch, not the knob to
# model. Supplying this input REPLACES the default list, so the six
# defaults are restated verbatim before this repo's own `*-lock.json`
# (only `package-lock.json` is a classifier built-in). Plain globs, not
# git pathspecs — no `:!` prefix.
extra_generated_globs: >-
**/node_modules/**
**/dist/**
**/vendor/**
**/*.generated.*
**/*.min.js
**/*.min.css
**/*-lock.json
secrets:
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}