mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-01 22:31:15 +00: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:
parent
9948163e6e
commit
3a4ffe951e
1 changed files with 1 additions and 1 deletions
|
@ -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{
|
return c.newClient(ctx, u).CreateHook(r.Owner, r.Name, &internal.Hook{
|
||||||
Active: true,
|
Active: true,
|
||||||
Desc: rawURL.Host,
|
Desc: rawURL.Host,
|
||||||
Events: []string{"repo:push", "pullrequest:created"},
|
Events: []string{"repo:push", "pullrequest:created", "pullrequest:updated", "pullrequest:fulfilled", "pullrequest:rejected"},
|
||||||
URL: link,
|
URL: link,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue