Gitea "Release Created" Discord Webhook Links To API URL #11693

Closed
opened 2025-11-02 09:44:53 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @TheBrokenRail on GitHub (Sep 21, 2023).

Description

If you setup a Discord webhook and create a release, the message posted to Discord will link to the Gitea API, rather than the user-accessible link.

For instance, it will link to https://gitea.thebrokenrail.com/api/v1/repos/minecraft-pi-reborn/minecraft-pi-reborn/releases/482 instead of https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/releases/tag/2.4.9.

Reproduced on https://try.gitea.io as well: https://try.gitea.io/TheBrokenRail/Discord-Webhook-Bug/releases/tag/test

Gitea Version

1.20.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Screenshot from 2023-09-21 15-03-33
Screenshot from 2023-09-21 15-03-41

Git Version

2.40.1, Wire Protocol Version 2 Enabled

Operating System

Ubuntu 20.04

How are you running Gitea?

Using the Docker image.

Database

SQLite

Originally created by @TheBrokenRail on GitHub (Sep 21, 2023). ### Description If you setup a Discord webhook and create a release, the message posted to Discord will link to the Gitea API, rather than the user-accessible link. For instance, it will link to https://gitea.thebrokenrail.com/api/v1/repos/minecraft-pi-reborn/minecraft-pi-reborn/releases/482 instead of https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/releases/tag/2.4.9. Reproduced on https://try.gitea.io as well: https://try.gitea.io/TheBrokenRail/Discord-Webhook-Bug/releases/tag/test ### Gitea Version 1.20.4 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![Screenshot from 2023-09-21 15-03-33](https://github.com/go-gitea/gitea/assets/17478432/aaa0fcd6-13e8-452d-a09e-a0462b7318ca) ![Screenshot from 2023-09-21 15-03-41](https://github.com/go-gitea/gitea/assets/17478432/d63f3aa9-d99b-4fe7-8660-654cd6255261) ### Git Version 2.40.1, Wire Protocol Version 2 Enabled ### Operating System Ubuntu 20.04 ### How are you running Gitea? Using the Docker image. ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 09:44:53 -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#11693