community.general/plugins
David Phillips f772bcda88
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.16) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
gitlab_protected_branch: refactor, add allow_force_push, code_owner_approval_required (#10795)
* gitlab_protected_branch: fix typo

* gitlab_protected_branch: lump parameters into options dictionary

Hardcoding parameter lists gets repetitive. Refactor this module to use
an options dictionary like many other gitlab_* modules. This makes it
cleaner to add new options.

* gitlab_protected_branch: update when possible

Until now, the module deletes and re-creates the protected branch if any
change is detected. This makes sense for the access level parameters, as
these are not easily mutated after creation.

However, in order to add further options which _can_ easily be updated,
we should support updating by default, unless known-immutable parameters
are changing.

* gitlab_protected_branch: add `allow_force_push` option

* gitlab_protected_branch: add `code_owner_approval_required` option

* gitlab_protected_branch: add issues to changelog

* Update changelog.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2025-09-08 19:02:40 +02:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
cache ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
callback selective: don't hard code ansible_loop_var 'item' (#10752) 2025-08-29 06:32:15 +02:00
connection ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
doc_fragments django_dumpdata, django_loaddata: new modules (#10726) 2025-09-03 21:49:11 +02:00
filter Add filters to_yaml and to_nice_yaml (#10784) 2025-09-08 18:48:49 +02:00
inventory remove extra brackets when params are a given by a comprehension (#10712) 2025-08-23 19:14:39 +02:00
lookup Deprecate hiera lookup (#10779) 2025-08-31 16:15:20 +02:00
module_utils gitlab_*_variable: support masked-and-hidden variables (#10787) 2025-09-08 18:40:35 +02:00
modules gitlab_protected_branch: refactor, add allow_force_push, code_owner_approval_required (#10795) 2025-09-08 19:02:40 +02:00
plugin_utils ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00
test ansible-core 2.20: avoid deprecated functionality (#10687) 2025-08-18 06:25:23 +02:00