mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-16 19:35:14 +00:00
Add release event to webhooks (#3784)
This commit is contained in:
parent
8b387e73ee
commit
760a903a30
2 changed files with 2 additions and 2 deletions
|
@ -381,7 +381,7 @@ func (c *Forgejo) Activate(ctx context.Context, u *model.User, r *model.Repo, li
|
||||||
hook := forgejo.CreateHookOption{
|
hook := forgejo.CreateHookOption{
|
||||||
Type: forgejo.HookTypeForgejo,
|
Type: forgejo.HookTypeForgejo,
|
||||||
Config: config,
|
Config: config,
|
||||||
Events: []string{"push", "create", "pull_request"},
|
Events: []string{"push", "create", "pull_request", "release"},
|
||||||
Active: true,
|
Active: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -383,7 +383,7 @@ func (c *Gitea) Activate(ctx context.Context, u *model.User, r *model.Repo, link
|
||||||
hook := gitea.CreateHookOption{
|
hook := gitea.CreateHookOption{
|
||||||
Type: gitea.HookTypeGitea,
|
Type: gitea.HookTypeGitea,
|
||||||
Config: config,
|
Config: config,
|
||||||
Events: []string{"push", "create", "pull_request"},
|
Events: []string{"push", "create", "pull_request", "release"},
|
||||||
Active: true,
|
Active: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue