Skip to content

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

Closed
@TheBrokenRail

Description

@TheBrokenRail

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions