Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

Fix error when no approvers are specified#8

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

Fix error when no approvers are specified#8
philn-delphia merged 1 commit into
v2from
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant