Add updated, merged and declined events to bb webhook activation (#3963)

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
Joan Flotats 2024-07-23 14:17:58 +02:00 committed by GitHub
parent 9948163e6e
commit 3a4ffe951e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -313,7 +313,7 @@ func (c *config) Activate(ctx context.Context, u *model.User, r *model.Repo, lin
return c.newClient(ctx, u).CreateHook(r.Owner, r.Name, &internal.Hook{
Active: true,
Desc: rawURL.Host,
Events: []string{"repo:push", "pullrequest:created"},
Events: []string{"repo:push", "pullrequest:created", "pullrequest:updated", "pullrequest:fulfilled", "pullrequest:rejected"},
URL: link,
})
}