Skip to content

feat!: Leave pull requests to the calling workflow - #3

Merged
azulus merged 2 commits into
mainfrom
jeremy/cli-only
Oct 20, 2026
Merged

azulus merged 2 commits into
mainfrom
jeremy/cli-only

Conversation

@azulus

@azulus azulus commented Oct 20, 2026

Copy link
Copy Markdown
Member

The CLI no longer knows pull requests exist. It lints a changeset or files, prints a report in the chosen format, and exits 0, 1, or 2 like eslint and ruff, so the calling workflow owns the PR comment and any override label. A new markdown format prints the report for the workflow to post and prints nothing when there is nothing to report; setup errors go to stderr, and a crash exits 2 so a workflow never reads it as findings.

This reverts #2, which taught the CLI about an override label. Labels and comments are a CI concern, and keeping them out leaves the CLI usable anywhere a changeset or file list is.

--pr-comment is removed, so this is a breaking change for 0.1.0 users; the README's workflow shows how to post the report, add the override guidance, and pass the check with the label.

🤖 Generated with Claude Code

azulus and others added 2 commits October 20, 2026 12:58
This reverts commit a1e8c88.

Reason: the override label is a pull request concern, so it belongs in the calling workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CLI no longer posts PR comments, reads the GitHub event, writes the job summary, or checks
for pull_request_target. It lints a changeset or files, prints a report in the chosen format, and
exits 0, 1, or 2 like eslint and ruff. A new markdown format prints the report for a workflow to
post, and prints nothing when there is nothing to report. Setup errors go to stderr, and a crash
exits 2 so a caller never reads it as findings.

BREAKING CHANGE: --pr-comment is removed; post the markdown report from the workflow, as the
README shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@azulus
azulus marked this pull request as ready for review October 20, 2026 20:04
@azulus
azulus merged commit cda3186 into main Oct 20, 2026
11 checks passed
@azulus
azulus deleted the jeremy/cli-only branch October 20, 2026 20:04

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 362894c. Configure here.

Comment thread README.md
cat report.md >> "$GITHUB_STEP_SUMMARY"

if [ "$status" -ne 0 ] && [ "$OVERRIDDEN" = true ]; then exit 0; fi
exit "$status"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Override label masks setup failures

High Severity

The workflow exits 0 for every non-zero status when OVERRIDDEN is true, so a setup error or crash (exit 2) also passes the check. Only exit 1 means findings, which the earlier comment and the previous CLI both required.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 362894c. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant