Skip to content

Commit 2f662cd

Browse files
Update docs for v17.8.0 release
1 parent c1921fc commit 2f662cd

File tree

5 files changed

+149
-2
lines changed

5 files changed

+149
-2
lines changed

CHANGELOG.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## 17.8.0 (2025-01-16)
2+
3+
This release was tested against GitLab 17.8, 17.7, and 17.6 for both CE and EE
4+
5+
### BREAKING CHANGES (1 change)
6+
7+
> Note: While we normally attempt to avoid breaking changes until major releases, this change aligns the `gitlab_project_issues` resource to the upstream API. That means that
8+
> if we held off on implementing it, our users could pass in multiple values to several attributes, and the API would ignore all but the first of them. Weighing the breaking change
9+
> against the bad user experience and potential confusion in user `plan` operations, we determined it was better to accept the small breaking change now than hold off another 4 months for 18.0.
10+
11+
- datasource/gitlab_project_issues: [Update several attributes to support a maximum of 1 item in their list to align to the GitLab API](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/7e4311674bac77d512098077cf8ed2e7958b26dc) by @gitlab-dependency-update-bot ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2255))
12+
13+
### FEATURE (1 change)
14+
15+
- **New Resource** resource/gitlab_value_stream_analytics: [Adds support managing value stream stages](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/72033f78d1acff93a08a537e0812c68c326c3efe) by @calee1 ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2234))
16+
17+
### IMPROVEMENTS (3 changes)
18+
19+
- resource/gitlab_group: [Add 'owner' support for project creation level](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/910c0ce8275c0f34ec5733c4f3608b1041be44bb) by @mness ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2253))
20+
- resource/gitlab_group_hook: [Add a validator to prevent spaces in the URL](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/527fbba6454ef4188a26cffa73e314be61dd219f) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2252))
21+
- resource/gitlab_project_hook: [Add name and description to gitlab_project_hook resource](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/5d24124412b3f55a9bb707292fc9226a43fe8ea9) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2258))
22+
- datasource/gitlab_project_membership: [Support user_ids attribute](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/45a477ee8f2e20fc2adb9a3fce9dd980021dfd4e) by @timofurrer ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2257))
23+
124
## 17.7.1 (2025-01-10)
225

326
This release was tested against GitLab 17.7, 17.6, and 17.5 for both CE and EE
@@ -13,7 +36,7 @@ This release was tested against GitLab 17.7, 17.6, and 17.5 for both CE and EE
1336

1437
### FEATURES (1 change)
1538

16-
- resource/gitlab_instance_service_account: [Allows managing instance-level service accounts](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/0da40eceb4272d3fb856139198da777d08960711) by @ipsavitsky234 ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2220))
39+
- **New Resource** resource/gitlab_instance_service_account: [Allows managing instance-level service accounts](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/0da40eceb4272d3fb856139198da777d08960711) by @ipsavitsky234 ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2220))
1740

1841
### IMPROVEMENTS (2 changes)
1942

docs/data-sources/project_membership.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ data "gitlab_project_membership" "example" {
4646
- `inherited` (Boolean) Return all project members including members through ancestor groups
4747
- `project_id` (Number) The ID of the project.
4848
- `query` (String) A query string to search for members
49+
- `user_ids` (Set of Number) List of user ids to filter members by
4950

5051
### Read-Only
5152

docs/resources/group.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ resource "gitlab_group" "example-five" {
110110
- `parent_id` (Number) Id of the parent group (creates a nested group).
111111
- `permanently_remove_on_delete` (Boolean) Whether the group should be permanently removed during a `delete` operation. This only works with subgroups. Must be configured via an `apply` before the `destroy` is run.
112112
- `prevent_forking_outside_group` (Boolean) Defaults to false. When enabled, users can not fork projects from this group to external namespaces.
113-
- `project_creation_level` (String) Determine if developers can create projects in the group. Valid values are: `noone`, `maintainer`, `developer`
113+
- `project_creation_level` (String) Determine if developers can create projects in the group. Valid values are: `noone`, `owner`, `maintainer`, `developer`
114114
- `push_rules` (Block List, Max: 1) Push rules for the group. (see [below for nested schema](#nestedblock--push_rules))
115115
- `request_access_enabled` (Boolean) Allow users to request member access.
116116
- `require_two_factor_authentication` (Boolean) Require all users in this group to setup Two-factor authentication.

docs/resources/project_hook.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The `gitlab_project_hook` resource allows to manage the lifecycle of a project h
1919
resource "gitlab_project_hook" "example" {
2020
project = "example/hooked"
2121
url = "https://example.com/hook/example"
22+
name = "example"
23+
description = "Example hook"
2224
merge_requests_events = true
2325
}
2426
@@ -57,10 +59,12 @@ resource "gitlab_project_hook" "custom_headers" {
5759
- `custom_headers` (Attributes List) Custom headers for the project webhook. (see [below for nested schema](#nestedatt--custom_headers))
5860
- `custom_webhook_template` (String) Custom webhook template.
5961
- `deployment_events` (Boolean) Invoke the hook for deployment events.
62+
- `description` (String) Description of the webhook.
6063
- `enable_ssl_verification` (Boolean) Enable SSL verification when invoking the hook.
6164
- `issues_events` (Boolean) Invoke the hook for issues events.
6265
- `job_events` (Boolean) Invoke the hook for job events.
6366
- `merge_requests_events` (Boolean) Invoke the hook for merge requests events.
67+
- `name` (String) Name of the project webhook.
6468
- `note_events` (Boolean) Invoke the hook for note events.
6569
- `pipeline_events` (Boolean) Invoke the hook for pipeline events.
6670
- `push_events` (Boolean) Invoke the hook for push events.
+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gitlab_value_stream_analytics Resource - terraform-provider-gitlab"
4+
subcategory: ""
5+
description: |-
6+
The gitlab_value_stream_analytics resource allows to manage the lifecycle of value stream analytics.
7+
-> This resource requires a GitLab Enterprise instance with a Premium license to create custom value stream analytics.
8+
Upstream API: GitLab GraphQL API docs https://docs.gitlab.com/ee/api/graphql/reference/#mutationvaluestreamcreate
9+
---
10+
11+
# gitlab_value_stream_analytics (Resource)
12+
13+
The `gitlab_value_stream_analytics` resource allows to manage the lifecycle of value stream analytics.
14+
15+
-> This resource requires a GitLab Enterprise instance with a Premium license to create custom value stream analytics.
16+
17+
**Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/ee/api/graphql/reference/#mutationvaluestreamcreate)
18+
19+
## Example Usage
20+
21+
```terraform
22+
resource "gitlab_value_stream_analytics" "project" {
23+
name = "TEST"
24+
project_full_path = "test/project"
25+
stages = [
26+
{
27+
name = "Issue"
28+
custom = false
29+
hidden = false
30+
},
31+
{
32+
name = "Issue Labels"
33+
custom = true
34+
hidden = false
35+
start_event_identifier = "ISSUE_LABEL_ADDED"
36+
start_event_label_id = "gid://gitlab/ProjectLabel/0"
37+
end_event_identifier = "ISSUE_LABEL_REMOVED"
38+
end_event_label_id = "gid://gitlab/ProjectLabel/1"
39+
}
40+
]
41+
}
42+
43+
resource "gitlab_value_stream_analytics" "group" {
44+
name = "TEST"
45+
group_full_path = "test/group"
46+
stages = [
47+
{
48+
name = "Issue"
49+
custom = false
50+
hidden = false
51+
},
52+
{
53+
name = "Issue Labels"
54+
custom = true
55+
hidden = false
56+
start_event_identifier = "ISSUE_LABEL_ADDED"
57+
start_event_label_id = "gid://gitlab/GroupLabel/0"
58+
end_event_identifier = "ISSUE_LABEL_REMOVED"
59+
end_event_label_id = "gid://gitlab/GroupLabel/1"
60+
}
61+
]
62+
}
63+
```
64+
65+
<!-- schema generated by tfplugindocs -->
66+
## Schema
67+
68+
### Required
69+
70+
- `name` (String) The name of the value stream
71+
- `stages` (Attributes Set) Stages of the value stream (see [below for nested schema](#nestedatt--stages))
72+
73+
### Optional
74+
75+
- `group_full_path` (String) Full path of the group the value stream is created in. **One of `group_full_path` OR `project_full_path` is required.**
76+
- `project_full_path` (String) Full path of the project the value stream is created in. **One of `group_full_path` OR `project_full_path` is required.**
77+
78+
### Read-Only
79+
80+
- `id` (String) The Terraform ID of the value stream in the format of `group:<group_full_path>:<id>` or `project:<project_full_path>:<id>`.
81+
82+
<a id="nestedatt--stages"></a>
83+
### Nested Schema for `stages`
84+
85+
Required:
86+
87+
- `name` (String) The name of the value stream stage.
88+
89+
Optional:
90+
91+
- `custom` (Boolean) Boolean whether the stage is customized. If false, it assigns a built-in default stage by name.
92+
- `end_event_identifier` (String) End event identifier. Valid values are: `CODE_STAGE_START`, `ISSUE_CLOSED`, `ISSUE_CREATED`, `ISSUE_DEPLOYED_TO_PRODUCTION`, `ISSUE_FIRST_ADDED_TO_BOARD`, `ISSUE_FIRST_ADDED_TO_ITERATION`, `ISSUE_FIRST_ASSIGNED_AT`, `ISSUE_FIRST_ASSOCIATED_WITH_MILESTONE`, `ISSUE_FIRST_MENTIONED_IN_COMMIT`, `ISSUE_LABEL_ADDED`, `ISSUE_LABEL_REMOVED`, `ISSUE_LAST_EDITED`, `ISSUE_STAGE_END`, `MERGE_REQUEST_CLOSED`, `MERGE_REQUEST_CREATED`, `MERGE_REQUEST_FIRST_ASSIGNED_AT`, `MERGE_REQUEST_FIRST_COMMIT_AT`, `MERGE_REQUEST_FIRST_DEPLOYTED_TO_PRODUCTION`, `MERGE_REQUEST_LABEL_ADDED`, `MERGE_REQUEST_LABEL_REMOVED`, `MERGE_REQUEST_LAST_BUILD_FINISHED`, `MERGE_REQUEST_LAST_BUILD_STARTED`, `MERGE_REQUEST_LAST_EDITED`, `MERGE_REQUEST_MERGED`, `MERGE_REQUEST_REVIEWER_FIRST_ASSIGNED`, `MERGE_REQUEST_PLAN_STAGE_START`
93+
- `end_event_label_id` (String) Label ID associated with the end event identifier. In the format of `gid://gitlab/GroupLabel/<id>` or `gid://gitlab/ProjectLabel/<id>`
94+
- `hidden` (Boolean) Boolean whether the stage is hidden, GitLab provided default stages are hidden by default.
95+
- `start_event_identifier` (String) Start event identifier. Valid values are: `CODE_STAGE_START`, `ISSUE_CLOSED`, `ISSUE_CREATED`, `ISSUE_DEPLOYED_TO_PRODUCTION`, `ISSUE_FIRST_ADDED_TO_BOARD`, `ISSUE_FIRST_ADDED_TO_ITERATION`, `ISSUE_FIRST_ASSIGNED_AT`, `ISSUE_FIRST_ASSOCIATED_WITH_MILESTONE`, `ISSUE_FIRST_MENTIONED_IN_COMMIT`, `ISSUE_LABEL_ADDED`, `ISSUE_LABEL_REMOVED`, `ISSUE_LAST_EDITED`, `ISSUE_STAGE_END`, `MERGE_REQUEST_CLOSED`, `MERGE_REQUEST_CREATED`, `MERGE_REQUEST_FIRST_ASSIGNED_AT`, `MERGE_REQUEST_FIRST_COMMIT_AT`, `MERGE_REQUEST_FIRST_DEPLOYTED_TO_PRODUCTION`, `MERGE_REQUEST_LABEL_ADDED`, `MERGE_REQUEST_LABEL_REMOVED`, `MERGE_REQUEST_LAST_BUILD_FINISHED`, `MERGE_REQUEST_LAST_BUILD_STARTED`, `MERGE_REQUEST_LAST_EDITED`, `MERGE_REQUEST_MERGED`, `MERGE_REQUEST_REVIEWER_FIRST_ASSIGNED`, `MERGE_REQUEST_PLAN_STAGE_START`
96+
- `start_event_label_id` (String) Label ID associated with the start event identifier. In the format of `gid://gitlab/GroupLabel/<id>` or `gid://gitlab/ProjectLabel/<id>`
97+
98+
Read-Only:
99+
100+
- `id` (String) The ID of the value stream stage.
101+
102+
## Import
103+
104+
Starting in Terraform v1.5.0 you can use an [import block](https://developer.hashicorp.com/terraform/language/import) to import `gitlab_value_stream_analytics`. For example:
105+
```terraform
106+
import {
107+
to = gitlab_value_stream_analytics.example
108+
id = "see CLI command below for ID"
109+
}
110+
```
111+
112+
Import using the CLI is supported using the following syntax:
113+
114+
```shell
115+
# Gitlab value stream analytics can be imported with a key composed of `<full_path_type>:<full_path>:<value_stream_id>`, e.g.
116+
terraform import gitlab_value_stream_analytics.group "group:people/engineers:42"
117+
118+
terraform import gitlab_value_stream_analytics.project "project:projects/sample:43"
119+
```

0 commit comments

Comments
 (0)