Skip to content

Show actionable PR rule summaries and ignore inline link examples - #100

Merged
LE0-Lin merged 1 commit into
mainfrom
improve/maintainer-review
Nov 16, 2026
Merged

LE0-Lin merged 1 commit into
mainfrom
improve/maintainer-review

Conversation

@LE0-Lin

@LE0-Lin LE0-Lin commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Optional PR comments previously showed only aggregate counts, making it hard to tell which rules need review. The Action now exports a source-free new-rule-counts JSON breakdown, and the opt-in recipe shows up to five rule types, their severity/counts, the number omitted, and local recheck commands. A passing gate with new findings explicitly requests review. Older Action revisions retain the numeric fallback.

The payload accepts bounded IDs/severities/counts only, validates totals, rejects duplicates/unexpected fields, and stops before GitHub reads/writes on malformed data. The exporter uses catalog metadata and never includes source messages or paths. Existing one-comment ownership, pagination, fork/permission behavior and regression outcome remain unchanged. The CLI-generated recipe matches the copy-ready workflow.

Also fix a concrete dead-path false positive: inline Markdown link syntax inside matched backtick code or with an escaped opening bracket is an example, not a live reference. Actual adjacent links, code in link labels, unclosed markers and escaped exclamation marks remain checked.

Validation: the full local suite passes (687 tests, 13 platform-specific skips), plus the subsequently added actual-comparison-to-exporter integration test passes. Run the standard demo and documentation checks. Node tests execute the real workflow script with a fake GitHub client; no comments are posted. Cross-platform CI and the local composite Action must pass before merge.

New behavior is marked unreleased; published v0.26.2 and rolling v0 are unchanged. Prompt-injection detection scope is unchanged. Includes a clearly labelled synthetic comment preview.

@LE0-Lin
LE0-Lin merged commit dc73e30 into main Nov 16, 2026
34 checks passed
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