community.general/plugins
patchback[bot] 053d0aec28
[PR #10795/f772bcda backport][stable-11] gitlab_protected_branch: refactor, add allow_force_push, code_owner_approval_required (#10803)
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.

---------


(cherry picked from commit f772bcda88)

Co-authored-by: David Phillips <phillid@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-09-08 19:06:38 +02:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become [PR #10687/47e8a3c1 backport][stable-11] ansible-core 2.20: avoid deprecated functionality (#10693) 2025-08-18 05:18:31 +00:00
cache [PR #10687/47e8a3c1 backport][stable-11] ansible-core 2.20: avoid deprecated functionality (#10693) 2025-08-18 05:18:31 +00:00
callback [PR #10752/f6003f61 backport][stable-11] selective: don't hard code ansible_loop_var 'item' (#10764) 2025-08-29 07:04:00 +02:00
connection [PR #10687/47e8a3c1 backport][stable-11] ansible-core 2.20: avoid deprecated functionality (#10693) 2025-08-18 05:18:31 +00:00
doc_fragments [PR #10726/d0123a10 backport][stable-11] django_dumpdata, django_loaddata: new modules (#10790) 2025-09-03 22:29:17 +02:00
filter [PR #10784/062b63bd backport][stable-11] Add filters to_yaml and to_nice_yaml (#10802) 2025-09-08 18:54:47 +02:00
inventory [PR #10712/cb84fa74 backport][stable-11] remove extra brackets when params are a given by a comprehension (#10725) 2025-08-23 19:43:27 +02:00
lookup [PR #10779/4a70d409 backport][stable-11] Deprecate hiera lookup (#10781) 2025-08-31 16:51:55 +02:00
module_utils [PR #10787/3574b3fa backport][stable-11] gitlab_*_variable: support masked-and-hidden variables (#10801) 2025-09-08 18:54:38 +02:00
modules [PR #10795/f772bcda backport][stable-11] gitlab_protected_branch: refactor, add allow_force_push, code_owner_approval_required (#10803) 2025-09-08 19:06:38 +02:00
plugin_utils [PR #10687/47e8a3c1 backport][stable-11] ansible-core 2.20: avoid deprecated functionality (#10693) 2025-08-18 05:18:31 +00:00
test [PR #10687/47e8a3c1 backport][stable-11] ansible-core 2.20: avoid deprecated functionality (#10693) 2025-08-18 05:18:31 +00:00