Skip to content

Discord "Commit Status" Webhooks Are Broken #33603

Closed
@TheBrokenRail

Description

@TheBrokenRail

Description

Gitea's commit status webhooks are malformed and thus rejected by Discord. This is because it only provides a relative URL (like /minecraft-pi-reborn/runtime/actions/runs/7/jobs/1) instead of a full URL (like https://gitea.thebrokenrail.com/minecraft-pi-reborn/runtime/actions/runs/7/jobs/1). The issue seems to be caused by this line.

Gitea Version

1.23.3

Can you reproduce the bug on the Gitea demo site?

Probably. But I do not have the time to set up an additional Gitea Actions runner just to test a webhook.

Log Gist

No response

Screenshots

After manually modifying the request, it worked:

Image

BTW this should probably just use the short commit hash.

Git Version

No response

Operating System

No response

How are you running Gitea?

Using the official Gitea Docker image.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions