Added Printing the Raw Webhook Payload to Standard Output example #746
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a minimal hook example to Hook-Examples.md for printing the raw incoming webhook payload directly to the server's console/output (visible in verbose logs).
This is particularly useful for:
The example leverages
pass-raw-request-body(introduced in v2.8.0) to pipe the raw body to stdin, combined with/bin/cat -to output it.No code changes are required—pure documentation addition.
Example configuration:
[ { "id": "print-payload", "execute-command": "/bin/cat", "pass-raw-request-body": true, "pass-arguments-to-command": [ { "source": "string", "name": "-" } ], "include-command-output-in-response": true, "include-command-output-in-response-on-error": true } ]