[PR #3929] [MERGED] Add more webhooks support and refactor webhook templates directory #17145

Closed
opened 2025-11-02 12:27:27 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3929
Author: @lunny
Created: 5/9/2018
Status: Merged
Merged: 5/16/2018
Merged by: @lunny

Base: masterHead: lunny/more_hook_event


📝 Commits (10+)

  • 5c30c63 add more webhook support
  • 09a7a4e move hooks templates to standalone dir and add more webhooks ui
  • a03e215 fix tests
  • dfb4199 update vendor checksum
  • b3efc5c add more webhook support
  • db49cfa move hooks templates to standalone dir and add more webhooks ui
  • cab3e7f fix tests
  • 175f82b update vendor checksum
  • 12e74dc update vendor
  • a45f622 load attributes when created release

📊 Changes

33 files changed (+1010 additions, -118 deletions)

View changed files

📝 docs/content/doc/features/comparison.en-us.md (+1 -1)
📝 models/action.go (+20 -0)
📝 models/issue_comment.go (+92 -18)
📝 models/issue_milestone.go (+46 -1)
📝 models/issue_milestone_test.go (+2 -0)
📝 models/release.go (+21 -1)
📝 models/repo.go (+11 -0)
📝 models/webhook.go (+79 -33)
📝 models/webhook_dingtalk.go (+137 -0)
📝 models/webhook_discord.go (+186 -0)
📝 models/webhook_slack.go (+126 -0)
📝 models/webhook_test.go (+1 -1)
📝 modules/auth/repo_form.go (+11 -6)
📝 options/locale/locale_en-US.ini (+10 -0)
📝 routers/api/v1/repo/issue_comment.go (+3 -2)
📝 routers/api/v1/utils/hook.go (+22 -5)
📝 routers/repo/issue.go (+3 -2)
📝 routers/repo/webhook.go (+12 -7)
📝 templates/repo/settings/webhook/base.tmpl (+1 -1)
📝 templates/repo/settings/webhook/delete_modal.tmpl (+0 -0)

...and 13 more files

📄 Description

This PR will add delete, fork, issues, issue_comment, release webhooks to Gitea. It dependents https://github.com/go-gitea/go-sdk/pull/106 and need UI work.


🔄 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/3929 **Author:** [@lunny](https://github.com/lunny) **Created:** 5/9/2018 **Status:** ✅ Merged **Merged:** 5/16/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/more_hook_event` --- ### 📝 Commits (10+) - [`5c30c63`](https://github.com/go-gitea/gitea/commit/5c30c63862a24dbf6130a2585855cb1f397d61d7) add more webhook support - [`09a7a4e`](https://github.com/go-gitea/gitea/commit/09a7a4eff7cde3a29bfd9b453434d0f145a07a99) move hooks templates to standalone dir and add more webhooks ui - [`a03e215`](https://github.com/go-gitea/gitea/commit/a03e215f6dd3debcefd5059da8d4cac5ba256783) fix tests - [`dfb4199`](https://github.com/go-gitea/gitea/commit/dfb419984b284892f68208e8869d276882ee911b) update vendor checksum - [`b3efc5c`](https://github.com/go-gitea/gitea/commit/b3efc5cce84dd55950e4adc37957316555af9de4) add more webhook support - [`db49cfa`](https://github.com/go-gitea/gitea/commit/db49cfa147d5df2de0a1b3c0b9b1c98196fc12d6) move hooks templates to standalone dir and add more webhooks ui - [`cab3e7f`](https://github.com/go-gitea/gitea/commit/cab3e7fd057db48651e4f809fb2086d35881a868) fix tests - [`175f82b`](https://github.com/go-gitea/gitea/commit/175f82b81013f197efcca902bd347f00f3af1b93) update vendor checksum - [`12e74dc`](https://github.com/go-gitea/gitea/commit/12e74dc4833e3978548edc2c680638d05f5129aa) update vendor - [`a45f622`](https://github.com/go-gitea/gitea/commit/a45f622a46ab666d80ddbdcf89f5a4979ee4a275) load attributes when created release ### 📊 Changes **33 files changed** (+1010 additions, -118 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/doc/features/comparison.en-us.md` (+1 -1) 📝 `models/action.go` (+20 -0) 📝 `models/issue_comment.go` (+92 -18) 📝 `models/issue_milestone.go` (+46 -1) 📝 `models/issue_milestone_test.go` (+2 -0) 📝 `models/release.go` (+21 -1) 📝 `models/repo.go` (+11 -0) 📝 `models/webhook.go` (+79 -33) 📝 `models/webhook_dingtalk.go` (+137 -0) 📝 `models/webhook_discord.go` (+186 -0) 📝 `models/webhook_slack.go` (+126 -0) 📝 `models/webhook_test.go` (+1 -1) 📝 `modules/auth/repo_form.go` (+11 -6) 📝 `options/locale/locale_en-US.ini` (+10 -0) 📝 `routers/api/v1/repo/issue_comment.go` (+3 -2) 📝 `routers/api/v1/utils/hook.go` (+22 -5) 📝 `routers/repo/issue.go` (+3 -2) 📝 `routers/repo/webhook.go` (+12 -7) 📝 `templates/repo/settings/webhook/base.tmpl` (+1 -1) 📝 `templates/repo/settings/webhook/delete_modal.tmpl` (+0 -0) _...and 13 more files_ </details> ### 📄 Description This PR will add delete, fork, issues, issue_comment, release webhooks to Gitea. It dependents https://github.com/go-gitea/go-sdk/pull/106 and need UI work. --- <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 12:27:27 -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#17145