Mimick github's webhook payload data #16

Closed
opened 2026-03-29 17:50:24 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @LecrisUT on GitHub (Jun 15, 2023).

Let's say there is a new commit pushed and you want github's webhook to be delayed until other CI jobs finish running. It would be nice in this situation to mimick github's payload for that event (or at least as much as possible). That way it can be plug-and-play replacement for the services that rely on webhook integration.

This could then be the default payloads to send.

Originally created by @LecrisUT on GitHub (Jun 15, 2023). Let's say there is a new commit pushed and you want github's webhook to be delayed until other CI jobs finish running. It would be nice in this situation to mimick github's payload for that event (or at least as much as possible). That way it can be plug-and-play replacement for the services that rely on webhook integration. This could then be the default payloads to send.
Author
Owner

@joelwmale commented on GitHub (Jun 15, 2023):

@LecrisUT you can have this job run after other CI jobs by setting the needs variable of the job? See documentation here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds

I could look at getting the github payload event for whatever happened (i.e push, merge, etc), would that help?

@joelwmale commented on GitHub (Jun 15, 2023): @LecrisUT you can have this job run after other CI jobs by setting the needs variable of the job? See documentation here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds I could look at getting the github payload event for whatever happened (i.e push, merge, etc), would that help?
Author
Owner

@LecrisUT commented on GitHub (Jun 15, 2023):

I could look at getting the github payload event for whatever happened (i.e push, merge, etc), would that help?

Indeed that is exactly what I was trying to say in this issue.

@LecrisUT commented on GitHub (Jun 15, 2023): > I could look at getting the github payload event for whatever happened (i.e push, merge, etc), would that help? Indeed that is exactly what I was trying to say in this issue.
Author
Owner

@joelwmale commented on GitHub (Mar 28, 2024):

@LecrisUT this has been added in v2.4.0: https://github.com/joelwmale/webhook-action/tree/master?tab=readme-ov-file#action-input

@joelwmale commented on GitHub (Mar 28, 2024): @LecrisUT this has been added in v2.4.0: https://github.com/joelwmale/webhook-action/tree/master?tab=readme-ov-file#action-input
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/webhook-action#16