Skip to content

System webhook trigger on Status Check event #18852

Open
@sjdrc

Description

@sjdrc

Feature Description

At my organisation, we use Gitea with Drone for CI and Slack for messaging. We have webhooks set up to post to slack when PRs are opened, merged etc.

As part of our CI pipeline, we have a step that will trigger to also call a slack webhook to notify on the status of the builds. However, this process is not super streamlined, we need to commit this slack code to every repo we want notifications for, and slows down our CI (the steps need to wait to be scheduled, so sometimes notifications don't fire for ages). Drone also has system webhooks but this does not seem to be compatible with posting to slack directly.

It would be great if Gitea were able to fire outgoing webhooks based on the status check changing, i.e. when a build starts, succeeds, or fails. This would simplify our (and probably many others) workflows.

Please see attached screenshots for the status check I am talking about, and a suggested additional button to toggle on the webhook.

Screenshots

PR build status check

Pull Request Status Check Webhook

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/webhookstype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions