[PR #5027] [MERGED] Webhook for Pull Request approval/rejection #17600

Closed
opened 2025-11-02 14:21:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5027
Author: @adelowo
Created: 10/6/2018
Status: Merged
Merged: 12/27/2018
Merged by: @techknowlogick

Base: masterHead: webhook_for_pr_approval_rejection


📝 Commits (10+)

📊 Changes

6 files changed (+168 additions, -20 deletions)

View changed files

📝 models/review.go (+44 -6)
📝 models/webhook.go (+12 -10)
📝 models/webhook_dingtalk.go (+28 -1)
📝 models/webhook_discord.go (+52 -0)
📝 models/webhook_slack.go (+31 -2)
📝 options/locale/locale_en-US.ini (+1 -1)

📄 Description

Fixes https://github.com/go-gitea/gitea/issues/4986

Format web hook for

  • Slack
  • Discord
  • Dingtalk

Here is an example of what it looks like on Slack

lol

🔄 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/5027 **Author:** [@adelowo](https://github.com/adelowo) **Created:** 10/6/2018 **Status:** ✅ Merged **Merged:** 12/27/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `webhook_for_pr_approval_rejection` --- ### 📝 Commits (10+) - [`17f9a87`](https://github.com/go-gitea/gitea/commit/17f9a8776ce32bcf913dff21de5d026edd43df89) started work on allowing pr approval/rejection... Untested though - [`1d478c9`](https://github.com/go-gitea/gitea/commit/1d478c933ce43b2ceef1be21e0b578b37a3a3b2b) whoops - [`b5564d6`](https://github.com/go-gitea/gitea/commit/b5564d62aa94cdd9099b32c55efb5f204183e5a4) fix pr#Issue being nil - [`e92bef5`](https://github.com/go-gitea/gitea/commit/e92bef5ae5ecdb2a2ae358537eda8fdbb7094887) updated hook name - [`b549837`](https://github.com/go-gitea/gitea/commit/b549837ec40aac424274b379d0c3e652a9068825) properly format webhook for slack - [`d2cfc93`](https://github.com/go-gitea/gitea/commit/d2cfc93b4f3d19aa960dd06c750a8f58b819167b) remove redundant newline - [`8969baf`](https://github.com/go-gitea/gitea/commit/8969baf072efb2a5b4fae15a8db6d47cc5738fad) remove redundant comment - [`5ed0dbc`](https://github.com/go-gitea/gitea/commit/5ed0dbcc20d14b6fbba055e309ddd3ec8eab054d) fix make lint - [`59f4f5a`](https://github.com/go-gitea/gitea/commit/59f4f5ace032191ba5b5a53d111051e735be4a2b) fix build - [`1923bd9`](https://github.com/go-gitea/gitea/commit/1923bd9093ecdc498b99a8e1b0bee4e23900088f) add webhook formatting for discord ### 📊 Changes **6 files changed** (+168 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `models/review.go` (+44 -6) 📝 `models/webhook.go` (+12 -10) 📝 `models/webhook_dingtalk.go` (+28 -1) 📝 `models/webhook_discord.go` (+52 -0) 📝 `models/webhook_slack.go` (+31 -2) 📝 `options/locale/locale_en-US.ini` (+1 -1) </details> ### 📄 Description Fixes https://github.com/go-gitea/gitea/issues/4986 Format web hook for - [x] Slack - [x] Discord - [x] Dingtalk Here is an example of what it looks like on Slack <img width="1393" alt="lol" src="https://user-images.githubusercontent.com/12677701/46573112-467afa80-c988-11e8-96e8-c66ac9ba63b4.png"> --- <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 14:21:16 -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#17600