1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-10 11:51:49 +00:00
community.general/plugins
RealCharlesChia 798439f1fe
Fix gitlab_hook: add default value for releases_events parameter (#11917)
* Fix gitlab_hook: only pass releases_events to API when specified

The releases_events parameter now only gets passed to the GitLab API:
- On create: always passed (fixes 500 error when not specified)
- On update: only passed when explicitly specified by user

This avoids forcing the releases_events value during updates when not
intended by the user.

Fixes: https://github.com/ansible-collections/community.general/issues/11269

* Add changelog fragment for gitlab_hook releases_events fix

Fixes: https://github.com/ansible-collections/community.general/issues/11269

* Add PR link to changelog fragment

* Use .get() for safer dict access in releases_events handling

* Update plugins/modules/gitlab_hook.py

remove `.get()`

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/gitlab_hook.py

Remove the null check for `options[“releases_events”]`

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Charles Chia <charleschia@email.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-09 21:52:48 +02:00
..
action Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
become pfexec become plugin: fix broken defaults for illumos/SmartOS (#11623) 2026-04-25 21:12:36 +02:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback selective callback plugin: route output through display to honour ANSIBLE_LOG_PATH (#11927) 2026-04-29 21:25:43 +02:00
connection saltstack connection plugin: add documentation (#11992) 2026-05-07 07:36:47 +12:00
doc_fragments Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
filter Replace % string formatting with f-strings across multiple plugins (#11908) 2026-04-22 07:06:27 +12:00
inventory Fix nmap inventory plugin: skip setting reserved 'name' variable (#11893) 2026-04-25 21:07:19 +02:00
lookup filetree lookup: document RETURN value state (#11997) 2026-05-07 07:38:20 +02:00
module_utils nomad modules: extract common connection logic into _nomad module utils (#11957) 2026-05-08 23:25:26 +12:00
modules Fix gitlab_hook: add default value for releases_events parameter (#11917) 2026-05-09 21:52:48 +02:00
plugin_utils Replace % string formatting with f-strings across multiple plugins (#11908) 2026-04-22 07:06:27 +12:00
test Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00