Skip to content

feat(hooks): support custom webhook template on project hooks - #3424

Merged
JohnVillalovos merged 1 commit into
python-gitlab:mainfrom
kenancakir:feat/hook-custom-webhook
Jul 27, 2026
Merged

feat(hooks): support custom webhook template on project hooks#3424
JohnVillalovos merged 1 commit into
python-gitlab:mainfrom
kenancakir:feat/hook-custom-webhook

Conversation

@kenancakir

Copy link
Copy Markdown
Contributor

Changes

Adds a optional parameter custom_webhook_template to project hooks

Documentation and testing

Tested this in a local docker container running Gitlab EE

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.78%. Comparing base (00e3802) to head (abc9f9f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3424      +/-   ##
==========================================
+ Coverage   90.32%   95.78%   +5.46%     
==========================================
  Files         100      100              
  Lines        6172     6172              
==========================================
+ Hits         5575     5912     +337     
+ Misses        597      260     -337     
Flag Coverage Δ
api_func_v4 83.91% <ø> (?)
cli_func_v4 78.74% <ø> (?)
unit 90.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/v4/objects/hooks.py 94.44% <ø> (ø)

... and 27 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JohnVillalovos JohnVillalovos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @kenancakir

LGTM

If you wanted to add all the other ones from: https://docs.gitlab.com/api/project_webhooks/#add-a-webhook-to-a-project That would be nice too.

@JohnVillalovos
JohnVillalovos merged commit 39dc990 into python-gitlab:main Jul 27, 2026
18 checks passed
@kenancakir
kenancakir deleted the feat/hook-custom-webhook branch July 27, 2026 06:15
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.

2 participants