1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-11 12:14:08 +00:00
community.general/changelogs
patchback[bot] b3669957d9
[PR #11917/798439f1 backport][stable-12] Fix gitlab_hook: add default value for releases_events parameter (#12017)
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()`



* Update plugins/modules/gitlab_hook.py

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



---------



(cherry picked from commit 798439f1fe)

Co-authored-by: RealCharlesChia <161665317+RealCharlesChia@users.noreply.github.com>
Co-authored-by: Charles Chia <charleschia@email.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-09 22:05:55 +02:00
..
fragments [PR #11917/798439f1 backport][stable-12] Fix gitlab_hook: add default value for releases_events parameter (#12017) 2026-05-09 22:05:55 +02:00
.gitignore Add more default license and copyright notices (#5087) 2022-08-08 08:44:19 +02:00
changelog.yaml Release 12.6.0. 2026-04-20 12:34:53 +02:00
changelog.yaml.license Make reuse conformant (#5138) 2022-08-21 08:27:01 +02:00
config.yaml Normalize changelog configs. 2025-07-27 16:36:35 +02:00