Skip to content

feat: approve PR when no finding matches request-changes-on - #23

Merged
joaopereirajp merged 1 commit into
mainfrom
feature/approve-when-no-blocking-severity
Jul 17, 2026
Merged

feat: approve PR when no finding matches request-changes-on#23
joaopereirajp merged 1 commit into
mainfrom
feature/approve-when-no-blocking-severity

Conversation

@joaopereirajp

Copy link
Copy Markdown
Contributor

What

When findings exist but none match the severities configured in request-changes-on, the review event is now APPROVE instead of COMMENT.

Why

This makes the action behavior binary and predictable: a PR either gets blocked (REQUEST_CHANGES) or is approved. Non-blocking findings are still visible as inline comments, but they no longer leave the PR in an intermediate "commented" state.

Changes

  • src/post.ts: simplified event logic to REQUEST_CHANGES or APPROVE.
  • src/post.test.ts: updated test expectations.
  • README.md: updated behavior description.
  • dist/index.js: rebuilt.

How to test

- uses: 4itworks/livvie_code_review@v3
  with:
    request-changes-on: "high"

With a low finding, the review will be APPROVE (with the inline comment still posted).

Checklist

  • npx tsc --noEmit
  • npm run lint
  • npx vitest run (281 tests)
  • npm run build
  • README updated

…ges-on

When findings exist but none match the severities configured in
request-changes-on, the review event is now APPROVE instead of COMMENT.
This makes the behavior binary: the PR either gets blocked (REQUEST_CHANGES)
or approved; non-blocking findings are still visible as inline comments.

- Update postReview event logic.
- Update post.test.ts expectations.
- Update README architecture section.
- Rebuild dist/index.js.
@joaopereirajp
joaopereirajp merged commit d2f356e into main Jul 17, 2026
5 checks passed
@joaopereirajp
joaopereirajp deleted the feature/approve-when-no-blocking-severity branch July 17, 2026 23:03
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