mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-30 16:41:21 -07:00
New module: gitlab_label (#7657)
* gitlab project label first commit * fixes from CI run * fixing some sanity test * sanity checks, removing typing * remove default for required field * fix indentation * improving test set * fixes to pass test set * reuse compliancy * fix sanity checks * fix: method returns group, not project * refactor: start adding group, test still pass * updated module and tests to handle group labels * update name to remove 'project' * removing default * typo * generic name for returned dict * returns also label object from library invocation * remove unused var, updated doc * fix output object name * version_added Co-authored-by: Felix Fontein <felix@fontein.de> * Remove python 2.7 Co-authored-by: Felix Fontein <felix@fontein.de> * Missing dot Co-authored-by: Felix Fontein <felix@fontein.de> * Remove version_added Co-authored-by: Felix Fontein <felix@fontein.de> * Remove useless doc Co-authored-by: Felix Fontein <felix@fontein.de> * Color is a string * Fixes from recent PR comments. --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
4298f2dd92
commit
5c72ab34bf
7 changed files with 1009 additions and 2 deletions
17
tests/integration/targets/gitlab_label/defaults/main.yml
Normal file
17
tests/integration/targets/gitlab_label/defaults/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
gitlab_project_name: ansible_test_project
|
||||
gitlab_host: ansible_test_host
|
||||
gitlab_api_token: ansible_test_api_token
|
||||
gitlab_project_group: ansible_test_group
|
||||
gitlab_branch: ansible_test_branch
|
||||
gitlab_first_label: ansible_test_label
|
||||
gitlab_first_label_color: "#112233"
|
||||
gitlab_first_label_description: "label description"
|
||||
gitlab_first_label_priority: 10
|
||||
gitlab_second_label: ansible_test_second_label
|
||||
gitlab_second_label_color: "#445566"
|
||||
gitlab_second_label_new_name: ansible_test_second_label_new_name
|
Loading…
Add table
Add a link
Reference in a new issue