Skip to content

Commit

Permalink
[MI-3380]:Fixed issue mattermost#686 'Pull Request Reviews are not po…
Browse files Browse the repository at this point in the history
…sted'
  • Loading branch information
Kshitij-Katiyar committed Aug 11, 2023
1 parent 11815f8 commit a5c70d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/plugin/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,11 @@ func (p *Plugin) postPullRequestReviewEvent(event *github.PullRequestReviewEvent

switch event.GetReview().GetState() {
case "APPROVED":
case "approved":
case "COMMENTED":
case "commented":
case "CHANGES_REQUESTED":
case "changes_requested":
default:
p.client.Log.Debug("Unhandled review state", "state", event.GetReview().GetState())
return
Expand Down

0 comments on commit a5c70d2

Please sign in to comment.