Skip to content

Commit 0740ca5

Browse files
authored
fix(scm/webhook): temporarily turn off pr:edited events (#677)
1 parent 9b27b07 commit 0740ca5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scm/github/webhook.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,9 @@ func (c *client) processPREvent(h *library.Hook, payload *github.PullRequestEven
215215
return &types.Webhook{Hook: h}, nil
216216
}
217217

218-
// skip if the pull request action is not opened, synchronize, or edited
218+
// skip if the pull request action is not opened, synchronize
219219
if !strings.EqualFold(payload.GetAction(), "opened") &&
220-
!strings.EqualFold(payload.GetAction(), "synchronize") &&
221-
!strings.EqualFold(payload.GetAction(), "edited") {
220+
!strings.EqualFold(payload.GetAction(), "synchronize") {
222221
return &types.Webhook{Hook: h}, nil
223222
}
224223

0 commit comments

Comments
 (0)