You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+21
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,24 @@
1
+
## 16.7.0 (2023-12-21)
2
+
3
+
This release was tested against GitLab 16.5, 16.6, and 16.7 for both CE and EE
4
+
5
+
DEPRECATION:
6
+
7
+
- This release updates the recommended Terraform version for this Provider from 1.0.0 to 1.4.0, and updates the version of Terraform we use for CI/CD to 1.4.0 as a result. This is related to a bug that was fixed in Terraform 1.4.0 related to how complex objects are compared. Without using Terraform 1.4.0, the provider cannot guarantee that plan output using nested objects is the same every time. Prior versions will likely still result in a successul plan and apply, but we will ask you to update prior to assisting with issue triage.
8
+
9
+
IMPROVEMENTS:
10
+
11
+
- resource/gitlab_branch_protection: Updating `allowed_to_push` will no longer destroy and re-create branch protection, it will instead update it in-place ([!1593](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1593))
12
+
- resource/gitlab_group_issue_board: Issue boards now supports the use of scoped labels, and label position can be explicitly configured ([!1771](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1771))
13
+
- resource/gitlab_project: Add support for `group_runners_enabled` ([!1735](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1735))
14
+
- datasource/gitlab_group: Groups with many projects will now be retrieved significantly faster ([!1770](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1770))
15
+
- datasource/gitlab_project: Add support for `group_runners_enabled` ([!1735](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1735))
16
+
17
+
BUG FIXES:
18
+
19
+
- resource/gitlab_pipeline_schedule: Fixed an issue where a pipeline schedule with no owner could cause a provider panic ([!1762](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1762))
20
+
- resource/gitlab_group_ldap_link: Fixed an issue with `force` that could cause an error when attempting to delete an ldap link ([!1757](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1757))
21
+
1
22
## 16.6.0 (2023-11-16)
2
23
3
24
This release was tested against GitLab 16.4, 16.5, and 16.6 for both CE and EE
Copy file name to clipboardExpand all lines: docs/data-sources/project_protected_branch.md
+23-14
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@
3
3
page_title: "gitlab_project_protected_branch Data Source - terraform-provider-gitlab"
4
4
subcategory: ""
5
5
description: |-
6
-
The gitlab_protected_branch data source allows details of a protected branch to be retrieved by its name and the project it belongs to.
6
+
The gitlab_project_protected_branch data source allows details of a protected branch to be retrieved by its name and the project it belongs to.
7
7
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch
8
8
---
9
9
10
10
# gitlab_project_protected_branch (Data Source)
11
11
12
-
The `gitlab_protected_branch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to.
12
+
The `gitlab_project_protected_branch` data source allows details of a protected branch to be retrieved by its name and the project it belongs to.
13
13
14
14
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html#get-a-single-protected-branch-or-wildcard-protected-branch)
15
15
@@ -35,31 +35,40 @@ data "gitlab_project_protected_branch" "example" {
35
35
-`name` (String) The name of the protected branch.
36
36
-`project_id` (String) The integer or path with namespace that uniquely identifies the project.
37
37
38
+
### Optional
39
+
40
+
-`merge_access_levels` (Block Set) Array of access levels and user(s)/group(s) allowed to merge to protected branch. (see [below for nested schema](#nestedblock--merge_access_levels))
41
+
-`push_access_levels` (Block Set) Array of access levels and user(s)/group(s) allowed to push to protected branch. (see [below for nested schema](#nestedblock--push_access_levels))
42
+
38
43
### Read-Only
39
44
40
45
-`allow_force_push` (Boolean) Whether force push is allowed.
41
46
-`code_owner_approval_required` (Boolean) Reject code pushes that change files listed in the CODEOWNERS file.
42
47
-`id` (Number) The ID of this resource.
43
-
-`merge_access_levels` (List of Object) Describes which access levels, users, or groups are allowed to perform the action. (see [below for nested schema](#nestedatt--merge_access_levels))
44
-
-`push_access_levels` (List of Object) Describes which access levels, users, or groups are allowed to perform the action. (see [below for nested schema](#nestedatt--push_access_levels))
45
48
46
-
<aid="nestedatt--merge_access_levels"></a>
49
+
<aid="nestedblock--merge_access_levels"></a>
47
50
### Nested Schema for `merge_access_levels`
48
51
52
+
Optional:
53
+
54
+
-`group_id` (Number) The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
55
+
-`user_id` (Number) The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
56
+
49
57
Read-Only:
50
58
51
-
-`access_level` (String)
52
-
-`access_level_description` (String)
53
-
-`group_id` (Number)
54
-
-`user_id` (Number)
59
+
-`access_level` (String) Access levels allowed to merge to protected branch. Valid values are: `no one`, `developer`, `maintainer`.
60
+
-`access_level_description` (String) Readable description of access level.
55
61
56
62
57
-
<aid="nestedatt--push_access_levels"></a>
63
+
<aid="nestedblock--push_access_levels"></a>
58
64
### Nested Schema for `push_access_levels`
59
65
66
+
Optional:
67
+
68
+
-`group_id` (Number) The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
69
+
-`user_id` (Number) The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
70
+
60
71
Read-Only:
61
72
62
-
-`access_level` (String)
63
-
-`access_level_description` (String)
64
-
-`group_id` (Number)
65
-
-`user_id` (Number)
73
+
-`access_level` (String) Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`.
74
+
-`access_level_description` (String) Readable description of access level.
Copy file name to clipboardExpand all lines: docs/data-sources/project_protected_branches.md
+31-19
Original file line number
Diff line number
Diff line change
@@ -32,40 +32,52 @@ data "gitlab_project_protected_branches" "example" {
32
32
33
33
-`project_id` (String) The integer or path with namespace that uniquely identifies the project.
34
34
35
+
### Optional
36
+
37
+
-`protected_branches` (Block List) A list of protected branches, as defined below. (see [below for nested schema](#nestedblock--protected_branches))
38
+
35
39
### Read-Only
36
40
37
-
-`id` (String) The ID of this resource.
38
-
-`protected_branches` (List of Object) A list of protected branches, as defined below. (see [below for nested schema](#nestedatt--protected_branches))
41
+
-`id` (Number) The ID of this resource.
39
42
40
-
<aid="nestedatt--protected_branches"></a>
43
+
<aid="nestedblock--protected_branches"></a>
41
44
### Nested Schema for `protected_branches`
42
45
46
+
Optional:
47
+
48
+
-`merge_access_levels` (Block Set) Array of access levels and user(s)/group(s) allowed to merge to protected branch. (see [below for nested schema](#nestedblock--protected_branches--merge_access_levels))
49
+
-`push_access_levels` (Block Set) Array of access levels and user(s)/group(s) allowed to push to protected branch. (see [below for nested schema](#nestedblock--protected_branches--push_access_levels))
50
+
43
51
Read-Only:
44
52
45
-
-`allow_force_push` (Boolean)
46
-
-`code_owner_approval_required` (Boolean)
47
-
-`id` (Number)
48
-
-`merge_access_levels` (List of Object) (see [below for nested schema](#nestedobjatt--protected_branches--merge_access_levels))
49
-
-`name` (String)
50
-
-`push_access_levels` (List of Object) (see [below for nested schema](#nestedobjatt--protected_branches--push_access_levels))
53
+
-`allow_force_push` (Boolean) Whether force push is allowed.
54
+
-`code_owner_approval_required` (Boolean) Reject code pushes that change files listed in the CODEOWNERS file.
55
+
-`id` (Number) The ID of this resource.
56
+
-`name` (String) The name of the protected branch.
-`allow_force_push` (Boolean) Can be set to true to allow users with push access to force push.
93
-
-`allowed_to_merge` (Block Set) Defines permissions for action. (see [below for nested schema](#nestedblock--allowed_to_merge))
94
-
-`allowed_to_push` (Block Set) Defines permissions for action. (see [below for nested schema](#nestedblock--allowed_to_push))
95
-
-`allowed_to_unprotect` (Block Set) Defines permissions for action. (see [below for nested schema](#nestedblock--allowed_to_unprotect))
96
-
-`code_owner_approval_required` (Boolean) Can be set to true to require code owner approval before merging. Only available own Premium and Ultimate instances.
93
+
-`allowed_to_merge` (Block Set) Array of access levels and user(s)/group(s) allowed to merge to protected branch. (see [below for nested schema](#nestedblock--allowed_to_merge))
94
+
-`allowed_to_push` (Block Set) Array of access levels and user(s)/group(s) allowed to push to protected branch. (see [below for nested schema](#nestedblock--allowed_to_push))
95
+
-`allowed_to_unprotect` (Block Set) Array of access levels and user(s)/group(s) allowed to unprotect push to protected branch. (see [below for nested schema](#nestedblock--allowed_to_unprotect))
96
+
-`code_owner_approval_required` (Boolean) Can be set to true to require code owner approval before merging. Only available for Premium and Ultimate instances.
-`feature_flags_access_level` (String) Set the feature flags access level. Valid values are `disabled`, `private`, `enabled`.
166
166
-`forked_from_project_id` (Number) The id of the project to fork. During create the project is forked and during an update the fork relation is changed.
167
167
-`forking_access_level` (String) Set the forking access level. Valid values are `disabled`, `private`, `enabled`.
168
+
-`group_runners_enabled` (Boolean) Enable group runners for this project.
168
169
-`group_with_project_templates_id` (Number) For group-level custom templates, specifies ID of group from which all the custom project templates are sourced. Leave empty for instance-level templates. Requires use_custom_template to be true (enterprise edition).
169
170
-`import_url` (String) Git URL to a repository to be imported. Together with `mirror = true` it will setup a Pull Mirror. This can also be used together with `forked_from_project_id` to setup a Pull Mirror for a fork. The fork takes precedence over the import. Make sure to provide the credentials in `import_url_username` and `import_url_password`. GitLab never returns the credentials, thus the provider cannot detect configuration drift in the credentials. They can also not be imported using `terraform import`. See the examples section for how to properly use it.
170
171
-`import_url_password` (String, Sensitive) The password for the `import_url`. The value of this field is used to construct a valid `import_url` and is only related to the provider. This field cannot be imported using `terraform import`. See the examples section for how to properly use it.
The gitlab_project_access_token resource allows to manage the lifecycle of a project access token.
7
+
~> Use of the timestamp() function with expires_at will cause the resource to be re-created with every apply, it's recommended to use plantimestamp() or a static value instead.
7
8
Upstream API: GitLab API docs https://docs.gitlab.com/ee/api/project_access_tokens.html
8
9
---
9
10
10
11
# gitlab_project_access_token (Resource)
11
12
12
13
The `gitlab_project_access_token` resource allows to manage the lifecycle of a project access token.
13
14
15
+
~> Use of the `timestamp()` function with expires_at will cause the resource to be re-created with every apply, it's recommended to use `plantimestamp()` or a static value instead.
16
+
14
17
**Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/project_access_tokens.html)
0 commit comments