harness / gitness

Gitness is an Open Source developer platform with Source Control management, Continuous Integration and Continuous Delivery.
https://gitness.com
Apache License 2.0
31.89k stars 2.78k forks source link

Feature Request: Support for Displaying the Webhook Execution List #3533

Open ysicing opened 1 week ago

ysicing commented 1 week ago

requesting support for displaying a list of webhook executions within our application. Currently, users can manage webhooks by adding or removing them from their accounts. However, there is no feature to view which specific webhooks have been triggered, when they were triggered, and any associated metadata such as the request payload.

johannesHarness commented 1 week ago

Hey @ysicing, thanks for taking the time to submit this feature request 🚀 Webhook executions is something we've been planning to add and is actively tracked. As of now, the data itself is already available via REST API (full UI support will follow in the future).

To get the list of executions for a specific webhook, you can make the following curl call:

curl 'http://localhost:3000/api/v1/repos/{Project Identifier}%2F{Repo Identifier}/webhooks/{Webhook Identifier}/executions' \
  -H 'Authorization: Bearer {API Token}'

Note: you can pipe it into jq to format the json.