Skip to content

Fix v2: only break on authorized /approve, not first match#100

Merged
joshjohanning merged 1 commit into
release/v2from
release/v2.0.6
Apr 3, 2026
Merged

Fix v2: only break on authorized /approve, not first match#100
joshjohanning merged 1 commit into
release/v2from
release/v2.0.6

Conversation

@joshjohanning

Copy link
Copy Markdown
Owner

V2 Hotfix

Bug

The shell script breaks out of the comment loop on the first /approve match, regardless of whether the commenter is in the required team. If a non-team-member comments /approve before a valid team member, the action fails even though a valid approval exists.

Fix

Moved the break inside the authorization check so it only exits the loop when a team member's /approve is found. Non-team-member /approve comments are now skipped and the loop continues.

Release steps

  1. Merge this PR into release/v2
  2. Create tag v2.0.6 from release/v2
  3. Update the v2 tag to point to v2.0.6
  4. Create a GitHub release for v2.0.6

Fixes #98

Previously the break executed on any /approve comment match, so if a
non-team-member commented /approve before a valid team member, the
action would stop checking and report unauthorized.

Now the break only executes after confirming the commenter is in the
required team, allowing later valid approvals to be found.

Fixes #98
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