Skip to content

Conversation

@IceXPR
Copy link
Contributor

@IceXPR IceXPR commented Jan 2, 2026

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:

  • Quick testing and verification of webhook senders.
  • Debugging payload content without writing custom scripts.

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
  }
]

@moorereason moorereason self-requested a review January 6, 2026 15:14
Copy link
Collaborator

@moorereason moorereason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@adnanh adnanh merged commit 8a2d3f8 into adnanh:master Jan 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants