Skip to content

Commit

Permalink
add dismissed state
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpatel committed Oct 23, 2024
1 parent 758ecc9 commit 96cae87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/handler/pull_request_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func (h *PullRequestReview) Handle(ctx context.Context, eventType, deliveryID st

func (h *PullRequestReview) affectsApproval(reviewState pull.ReviewState, config *policy.Config) bool {
states := make(map[pull.ReviewState]struct{})
// Include dismissed state
states[pull.ReviewDismissed] = struct{}{}

for _, rule := range config.ApprovalRules {
states[rule.Options.GetMethods().GithubReviewState] = struct{}{}
}
Expand Down

0 comments on commit 96cae87

Please sign in to comment.