[PR #1663] [MERGED] Webhooks for repo creation/deletion #15981

Closed
opened 2025-11-02 11:59:30 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1663
Author: @ethantkoenig
Created: 5/4/2017
Status: Merged
Merged: 9/3/2017
Merged by: @lafriks

Base: masterHead: etk/org_webhook


📝 Commits (4)

  • 5095cce Webhooks for repo creation/deletion
  • e48e0c1 add createHookTask
  • c67e46d fixes
  • fea6150 Add handles for GetSlackPayload and GetDiscordPayload

📊 Changes

16 files changed (+163 additions, -39 deletions)

View changed files

📝 models/repo.go (+31 -11)
📝 models/repo_test.go (+5 -6)
📝 models/webhook.go (+40 -8)
📝 models/webhook_discord.go (+33 -0)
📝 models/webhook_slack.go (+26 -0)
📝 modules/auth/repo_form.go (+1 -0)
📝 options/locale/locale_en-US.ini (+2 -0)
📝 routers/admin/admin.go (+1 -1)
📝 routers/admin/repos.go (+1 -1)
📝 routers/api/v1/repo/fork.go (+1 -1)
📝 routers/api/v1/repo/repo.go (+5 -5)
📝 routers/repo/pull.go (+1 -1)
📝 routers/repo/repo.go (+4 -4)
📝 routers/repo/setting.go (+1 -1)
📝 routers/repo/webhook.go (+1 -0)
📝 templates/repo/settings/hook_settings.tmpl (+10 -0)

📄 Description

Allow organizations to have webhooks that are triggered by repository creation/deletion. Partially addresses #2113.

Depends on https://github.com/go-gitea/go-sdk/pull/55 (merged)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1663 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 5/4/2017 **Status:** ✅ Merged **Merged:** 9/3/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `etk/org_webhook` --- ### 📝 Commits (4) - [`5095cce`](https://github.com/go-gitea/gitea/commit/5095cceb82cb47e8e72648dff296ae009606d276) Webhooks for repo creation/deletion - [`e48e0c1`](https://github.com/go-gitea/gitea/commit/e48e0c197e241da05e3b7f7bb725faf4eb14e36c) add createHookTask - [`c67e46d`](https://github.com/go-gitea/gitea/commit/c67e46d4142ed06eecd3d98d917f3f8d38be89bc) fixes - [`fea6150`](https://github.com/go-gitea/gitea/commit/fea61500acac25c3317c2cf2d44450c1211e279f) Add handles for GetSlackPayload and GetDiscordPayload ### 📊 Changes **16 files changed** (+163 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+31 -11) 📝 `models/repo_test.go` (+5 -6) 📝 `models/webhook.go` (+40 -8) 📝 `models/webhook_discord.go` (+33 -0) 📝 `models/webhook_slack.go` (+26 -0) 📝 `modules/auth/repo_form.go` (+1 -0) 📝 `options/locale/locale_en-US.ini` (+2 -0) 📝 `routers/admin/admin.go` (+1 -1) 📝 `routers/admin/repos.go` (+1 -1) 📝 `routers/api/v1/repo/fork.go` (+1 -1) 📝 `routers/api/v1/repo/repo.go` (+5 -5) 📝 `routers/repo/pull.go` (+1 -1) 📝 `routers/repo/repo.go` (+4 -4) 📝 `routers/repo/setting.go` (+1 -1) 📝 `routers/repo/webhook.go` (+1 -0) 📝 `templates/repo/settings/hook_settings.tmpl` (+10 -0) </details> ### 📄 Description Allow organizations to have webhooks that are triggered by repository creation/deletion. Partially addresses #2113. ~Depends on https://github.com/go-gitea/go-sdk/pull/55~ (merged) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:59:30 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15981