1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

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 6543
parent 814fc92bb5
commit 8f11a8ec9d

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,
})
}