Add release event to webhooks (#3784)

This commit is contained in:
qwerty287 2024-06-13 19:04:15 +02:00 committed by GitHub
parent 8b387e73ee
commit 760a903a30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@ func (c *Forgejo) Activate(ctx context.Context, u *model.User, r *model.Repo, li
hook := forgejo.CreateHookOption{
Type: forgejo.HookTypeForgejo,
Config: config,
Events: []string{"push", "create", "pull_request"},
Events: []string{"push", "create", "pull_request", "release"},
Active: true,
}

View file

@ -383,7 +383,7 @@ func (c *Gitea) Activate(ctx context.Context, u *model.User, r *model.Repo, link
hook := gitea.CreateHookOption{
Type: gitea.HookTypeGitea,
Config: config,
Events: []string{"push", "create", "pull_request"},
Events: []string{"push", "create", "pull_request", "release"},
Active: true,
}