Skip to content

Commit

Permalink
Fix trigger for pull request review events (#479)
Browse files Browse the repository at this point in the history
I left the wrong trigger value when copying the comment handling code.
  • Loading branch information
bluekeyes authored Sep 30, 2022
1 parent 99d45bc commit 2d3f595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/handler/pull_request_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (h *PullRequestReview) Handle(ctx context.Context, eventType, deliveryID st
return err
}

evaluator, err := evalCtx.ParseConfig(ctx, common.TriggerComment)
evaluator, err := evalCtx.ParseConfig(ctx, common.TriggerReview)
if err != nil {
return err
}
Expand All @@ -82,7 +82,7 @@ func (h *PullRequestReview) Handle(ctx context.Context, eventType, deliveryID st
return err
}

evalCtx.RunPostEvaluateActions(ctx, result, common.TriggerComment)
evalCtx.RunPostEvaluateActions(ctx, result, common.TriggerReview)
return nil
}

Expand Down

0 comments on commit 2d3f595

Please sign in to comment.