aboutsummaryrefslogtreecommitdiffstats
path: root/services/repository/hooks.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-03-10 15:28:32 +0100
committerGitHub <noreply@github.com>2023-03-10 08:28:32 -0600
commit2173f14708ff3b35d7821fc9b6dcb5fcd06b8494 (patch)
tree5dcb735cc960095f9f8e114a1d896bb80df66ba9 /services/repository/hooks.go
parentdad057b6393548ad389ead07c2cce5b3ac2811e0 (diff)
downloadgitea-2173f14708ff3b35d7821fc9b6dcb5fcd06b8494.tar.gz
gitea-2173f14708ff3b35d7821fc9b6dcb5fcd06b8494.zip
Add user webhooks (#21563)
Currently we can add webhooks for organizations but not for users. This PR adds the latter. You can access it from the current users settings. ![grafik](https://user-images.githubusercontent.com/1666336/197391408-15dfdc23-b476-4d0c-82f7-9bc9b065988f.png)
Diffstat (limited to 'services/repository/hooks.go')
-rw-r--r--services/repository/hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/hooks.go b/services/repository/hooks.go
index a8b6f7a622..8506fa3413 100644
--- a/services/repository/hooks.go
+++ b/services/repository/hooks.go
@@ -101,7 +101,7 @@ func GenerateWebhooks(ctx context.Context, templateRepo, generateRepo *repo_mode
HookEvent: templateWebhook.HookEvent,
IsActive: templateWebhook.IsActive,
Type: templateWebhook.Type,
- OrgID: templateWebhook.OrgID,
+ OwnerID: templateWebhook.OwnerID,
Events: templateWebhook.Events,
Meta: templateWebhook.Meta,
})