Webhook to Fedora Messaging for Forgejo
|
DRAFT DOCUMENTATION: This documentation is currently in draft form and may not be fully tested and correct. Please verify all procedures before use and report any issues or inaccuracies. |
Purpose
This document explains how to quickly establish events from a Forgejo repository to be conveyed to the Fedora Messaging bus.
Setting Up the Webhook
-
Create a webhook bind under the type Forgejo on the Webhook to Fedora Messaging dashboard with a unique name and an appropriate description.
-
Navigate to the project repository on Forgejo.
-
On the Settings page, navigate to the Webhooks section.
-
Click on the Add webhook button to open the combobox.
-
Select the Forgejo option there to begin.
-
Fill the information accurately from the created webhook bind.
-
After saving, the webhook bind should be enabled.
Supported Events
Perform one of the following actions for triggering the events.
Push
Events catalogued under the org.fedoraproject.prod.forgejo.push topic.
Pull Request
Events catalogued under the org.fedoraproject.prod.forgejo.pull_request topic.
Issue Ticket
Events catalogued under the org.fedoraproject.prod.forgejo.issues topic.
Issue Comment
Events catalogued under the org.fedoraproject.prod.forgejo.issue_comment topic.
Action Runs
Workflow execution events are catalogued under the following topics based on their outcome.
- Success
-
Events catalogued under the
org.fedoraproject.prod.forgejo.action_run_successtopic. - Failure
-
Events catalogued under the
org.fedoraproject.prod.forgejo.action_run_failuretopic. - Recover
-
Events catalogued under the
org.fedoraproject.prod.forgejo.action_run_recovertopic. - Cancelled
-
Events catalogued under the
org.fedoraproject.prod.forgejo.action_run_cancelledtopic.
Want to help? Learn how to contribute to Fedora Docs ›