Skip to content

Add support for hook call headers #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

wulfraem
Copy link
Contributor

@wulfraem wulfraem commented Jun 13, 2025

⚠️ NOTICE ⚠️

PR can be reviewed, but is intended to be merged after the 0.2 release.

Description

PR extends the hook configuration to allow configuring header, that will be used in the requests made to the hook server. A hook action can now be configured either as a URL or as a mapping with the fields url and headers.

Smaller other things refactored:

  • updates existing tests to use indoc, to make serialized examples more readable
  • split hook action config and main logic to allow initializing a re-usable client
  • update HookAction initialization
  • adds header parsing on .initialize
  • replaces hook_call_test import with wiremock

- split hook action config and main logic to allow initializing a re-usable client
- update `HookAction` initialization
- replace `call_hook` test impl with  `wiremock`
@wulfraem wulfraem marked this pull request as ready for review June 16, 2025 14:28
@wulfraem wulfraem requested a review from qrayven June 16, 2025 14:28
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.

1 participant