Skip to content

Fix error when no approvers are specified#8

Merged
philn-delphia merged 1 commit intov2from
fix-anyone-can-approve
Mar 3, 2026
Merged

Fix error when no approvers are specified#8
philn-delphia merged 1 commit intov2from
fix-anyone-can-approve

Conversation

@philn-delphia
Copy link
Copy Markdown
Collaborator

Summary

  • When approvers is empty and minimumApprovals is 0 (the "anyone can approve" case), approvalFromComments was returning error: no required approvers or minimum approvals set instead of allowing any commenter to approve.
  • Fix defaults minimumApprovals to 1 when both are unset.
  • Adds test cases for the no-approvers scenario.

When both approvers and minimumApprovals are unset (the "anyone can
approve" case), default minimumApprovals to 1 instead of returning
an error.
@philn-delphia philn-delphia self-assigned this Mar 3, 2026
@philn-delphia philn-delphia merged commit e7e40ad into v2 Mar 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant