mirror of
https://github.com/Comfy-Org/github-workflows.git
synced 2026-11-05 00:17:37 +00:00
[PR #29] [MERGED] feat(cursor-review): parameterize runs_on + models for self-hosted support #39
Labels
No labels
cursor-review-catalog-drift
groom
groom
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/github-workflows#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/github-workflows/pull/29
Author: @mattmillerai
Created: 7/15/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @mattmillerai
Base:
main← Head:matt/cursor-review-self-hostable📝 Commits (1)
872d00cfeat(cursor-review): parameterize runs_on + models, support self-hosted macOS📊 Changes
2 files changed (+55 additions, -16 deletions)
View changed files
📝
.github/workflows/cursor-review.yml(+54 -15)📝
README.md(+1 -1)📄 Description
ELI-5
The cursor-review workflow was hardcoded to GitHub-hosted
ubuntu-latestand a fixed model list. That blocks a repo that (a) is out of GitHub-hosted minutes and wants its own machine, or (b) has a Cursor account that can't reach a default provider. This adds two backward-compatible inputs so those repos self-host and pick their own models — without forking this workflow.What
Two new optional inputs, both defaulting to current behavior:
runs_on(JSON string, default'"ubuntu-latest"') — applied to all 7 jobs viafromJSON. Override to'["self-hosted", "macOS"]'.models(JSON array string, default = current 4-lab panel) — override when the account can't reach a default provider (no Google access → swap gemini for grok) or a model is delisted.Plus a portability fix: both cursor-agent install steps add
~/.local/bintoGITHUB_PATHalongside~/.cursor/bin(macOS installer targets the former, Linux the latter; absent dir is a harmless PATH entry).Why
A private consumer repo (agent-work) is over its GitHub-hosted-minutes quota and needs reviews on a self-hosted Mac, and its Cursor account has no Google access (all gemini variants error). Rather than vendor a forked copy with those changes, these inputs let it call the canonical workflow directly — keeping this repo the single source of truth.
Compatibility
runs_ondefaults toubuntu-latest→ every existing caller renders identically.modelsdefault unchanged → existing panels identical.~/.local/binaddition is inert on Linux.Self-hosted macOS note (learned the hard way)
On a self-hosted macOS runner, cursor-agent must run in a normal shell context (e.g.
run.shunder tmux + caffeinate) — a launchd LaunchAgent context makes cursor-agent exit instantly empty with no error. Noted in the caller-example header.Verification
runs_on+modelsoverrides validated end-to-end on a self-hosted macOS runner (agent-work): all four override models produced findings and a consolidated review posted. Default path is unchanged YAML for existing callers.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.