Skip to content

refactor: drop severity-threshold input from mongodb-query-index-check#4

Merged
mtrunkat merged 1 commit into
claude/mongodb-query-index-action-rmvAPfrom
claude/review-simplify-pr-8FsFU
May 16, 2026
Merged

refactor: drop severity-threshold input from mongodb-query-index-check#4
mtrunkat merged 1 commit into
claude/mongodb-query-index-action-rmvAPfrom
claude/review-simplify-pr-8FsFU

Conversation

@mtrunkat
Copy link
Copy Markdown
Member

Address PR review feedback on action.yaml line 33: collapse the strictness surface to a single request-changes toggle.

  • Drop severity-threshold input.
  • Drop the severity_rank() bash function and the threshold/rank comparison in the Finalize step. Finalize now just fails when request-changes: true and Claude reported any severity other than none.
  • Drop $SEVERITY_THRESHOLD from the envsubst allowlist and the prompt template. The "Decide the review event" section collapses to a single conditional on $REQUEST_CHANGES_MODE.
  • Drop the now-vestigial $RESULT_PATH file-exists fallback — the Validate step always seeds the file before Finalize can run.
  • Update README inputs table and how-it-works prose.

Inputs go from 7 → 6. No behavioural change for callers using the old defaults; callers that set severity-threshold will need to drop it.

Address PR review feedback on action.yaml line 33: collapse the strictness
surface to a single `request-changes` toggle.

* Drop `severity-threshold` input.
* Drop the `severity_rank()` bash function and the threshold/rank comparison
  in the Finalize step. Finalize now just fails when `request-changes: true`
  and Claude reported any severity other than `none`.
* Drop `$SEVERITY_THRESHOLD` from the envsubst allowlist and the prompt
  template. The "Decide the review event" section collapses to a single
  conditional on `$REQUEST_CHANGES_MODE`.
* Drop the now-vestigial `$RESULT_PATH` file-exists fallback — the Validate
  step always seeds the file before Finalize can run.
* Update README inputs table and how-it-works prose.

Inputs go from 7 → 6. No behavioural change for callers using the old
defaults; callers that set `severity-threshold` will need to drop it.
Copilot AI review requested due to automatic review settings May 16, 2026 13:29
@mtrunkat mtrunkat merged commit 0f7ffe6 into claude/mongodb-query-index-action-rmvAP May 16, 2026
3 checks passed
@mtrunkat mtrunkat deleted the claude/review-simplify-pr-8FsFU branch May 16, 2026 13:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies mongodb-query-index-check by removing the configurable severity threshold and making request-changes the single control for whether findings fail the check.

Changes:

  • Removes the severity-threshold input and related validation/comparison logic.
  • Updates the Claude prompt to request changes whenever findings exist and request-changes is true.
  • Updates README/action documentation to describe the new fail-on-any-finding behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
mongodb-query-index-check/action.yaml Removes threshold input/env handling and changes finalization to fail on any non-none severity.
mongodb-query-index-check/prompts/review.md Removes threshold prompt variables and simplifies review-event selection.
mongodb-query-index-check/README.md Updates user-facing input and workflow documentation for the simplified policy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +183 to +184
if [ "$INPUT_REQUEST_CHANGES" = "true" ] && [ "$max_severity" != "none" ]; then
echo "::error::MongoDB index review found '${max_severity}' issues. See the inline review comments on this PR."
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.

4 participants