Skip to content

Commit c1d033f

Browse files
Update docs for v18.1.0 release
1 parent 9eed32c commit c1d033f

File tree

119 files changed

+1951
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1951
-244
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
## 18.1.0 (2025-06-19)
2+
3+
### FEATURES (3 changes)
4+
5+
- resource/gitlab_project_merge_request_note: [New resource allows creating merge request notes](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/1c3b35d3ef30fcea99ba0dc5f633894d33b28961) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2539))
6+
- resource/gitlab_application_appearance: [New resource allows managing instance-wide application appearance](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/88f6ba10824d98f58db31e5cec6739386fc93f5f) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2516))
7+
- datasource/gitlab_project_merge_requests: [New datasource allows listing project merge requests](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/58123d3ac1a98145423402cd524cc4cd57556708) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2538))
8+
9+
### IMPROVEMENTS (15 changes)
10+
11+
- resource/gitlab_project: [Add support for `ci_forward_deployment_rollback_allowed`](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/363351360a6f17002e6007d3c8386f6963415177) by @paroose ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2543))
12+
- resource/gitlab_project: [Add support for `auto_duo_code_review_enabled`](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/d3ebf4e83271807f8fb96711fc6afd3f043aafa5) by @mness ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2502))
13+
- resource/gitlab_project: [Add `branches` option to project resource when forking](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/7ca8035425e2759a24629bee4d2db2b2a6084781) by @Taucher2003 ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2476))
14+
- resource/gitlab_group_saml_link: [Update group access level list for SAML group links to include `planner`](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/ab659199f95e86b9a9337f929bc03d56173c62da) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2521))
15+
- resource/gitlab_deploy_key: [Add support for `expires_at`, allowing expiring project deploy keys](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/2e6418b512340496f7ece5f00b8ccd0769b01a3c) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2517))
16+
- resource/gitlab_project_integration_mattermost: [Rename mattermost integration resource to clarify that it's project-level. The old resource name is now deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/4b10b9d78a3c2fe7f69d037d13e8b42a8c0d28a8) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2507))
17+
- resource/gitlab_project_integration_emails_on_push: [Rename emails on push integration resource to clarify that it's project-level. The old resource name is now deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/0564cf0ae5ed6675cb3052c24fd7127fb565d167) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2503))
18+
- resource/gitlab_project_integration_external_wiki: [Rename external wiki integration resource to clarify that it's project-level. The old resource name is now deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/cab85683d865e4f3ca58db9f7016ac66680e2460) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2504))
19+
- resource/gitlab_project_integration_custom_issue_tracker: [Rename custom issue tracker integration resource to clarify that it's project-level. The old resource name is now deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/a2f4c5d9edec5c9883d84962835477d0b49e0be6) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2510))
20+
- resource/gitlab_project_integration_jenkins: [Rename jenkins integration resource to clarify that it's project-level. The old resource name is now deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/6e31eb3cc23b9b80576d958fc8cd5b3908d0f6a9) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2512))
21+
- resource/gitlab_project_integration_harbor: [Rename harbor integration resource to clarify that it's project-level. The old resource name is now deprecated.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/61c37a9f7595aeedef18c63eca08f29012acaaff) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2511))
22+
- resource/gitlab_group_service_account_access_token: [Add support creating service account tokens with no expiry](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/becf7544b597c9ff5393b919a62003945e790e6c) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2482))
23+
- resource/gitlab_project_job_token_scopes: [The `enabled` attribute will now attempt to check the instance `enforce_ci_inbound_job_token_scope_enabled` prior to allowing a user to set the value to `false`, and will fail at plan time instead of apply time if the `enabled` setting conflicts with instance settings.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/f7d11df913b3e6fa59f3b67219561250f4658703) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2530))
24+
- datasource/gitlab_user: [Add experimental support for `email_exact_match`, which will always return an exact match on the email. This will override the fuzzy matching of the GitLab search API when no users match the given email.](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/2dd44a088abaeda3494c24fd5f8b939dff1a8d73) by @ricardo.bartels ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2362))
25+
- multiple resources: [Add missing examples to resources](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/d853ffe687699c313bf421cdf595b415c821d3bb) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2519))
26+
27+
### BUG FIXES (3 changes)
28+
29+
- resource/gitlab_branch: [Add warning to use lifecycle ignore_changes for gitlab_branch.ref](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/4e91cf3742610da549b943c6e60c52b96ec62a15) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2542))
30+
- resource/gitlab_project: [If a project import fails, the specific import error will now be surfaces to the user](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/eb4158fc5ff2e3a94cd2fa5c4205a2a34e079d9a) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2536))
31+
- multiple label resources: [Fixed an issue where using label color names would cause an error](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/commit/b2bc1925d7fa91c767aa3927e7c66d524ae391a7) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2520))
32+
133
## 18.0.0 (2025-05-16)
234

335
### BREAKING CHANGES (20 changes)

docs/data-sources/group_provisioned_users.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,43 @@
33
page_title: "gitlab_group_provisioned_users Data Source - terraform-provider-gitlab"
44
subcategory: ""
55
description: |-
6-
The gitlab_group_provisioned_users data source allows details of the provisioned users of a given group.
6+
The gitlab_group_provisioned_users data source retrieves details of the provisioned users in a given group.
77
Upstream API: GitLab REST API docs https://docs.gitlab.com/api/groups/#list-provisioned-users
88
---
99

1010
# gitlab_group_provisioned_users (Data Source)
1111

12-
The `gitlab_group_provisioned_users` data source allows details of the provisioned users of a given group.
12+
The `gitlab_group_provisioned_users` data source retrieves details of the provisioned users in a given group.
1313

1414
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/groups/#list-provisioned-users)
1515

16+
## Example Usage
1617

18+
```terraform
19+
data "gitlab_group" "example" {
20+
id = "foo/bar/baz"
21+
}
22+
23+
# Basic example
24+
data "gitlab_group_provisioned_users" "example" {
25+
id = data.gitlab_group.example.id
26+
}
27+
28+
# Complex example
29+
data "gitlab_group_provisioned_users" "example" {
30+
id = data.gitlab_group.example.id
31+
created_after = "2024-09-20T06:15:29Z"
32+
active = true
33+
blocked = false
34+
created_before = "2024-09-21T06:15:29Z"
35+
}
36+
37+
# Search example
38+
data "gitlab_group_provisioned_users" "example" {
39+
id = data.gitlab_group.example.id
40+
search = "Hoa nguyen 1"
41+
}
42+
```
1743

1844
<!-- schema generated by tfplugindocs -->
1945
## Schema

docs/data-sources/group_service_account.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,29 @@
33
page_title: "gitlab_group_service_account Data Source - terraform-provider-gitlab"
44
subcategory: ""
55
description: |-
6-
The gitlab_group_service_account data source retrieves information about a gitlab service account for a group.
6+
The gitlab_group_service_account data source retrieves information about a GitLab service account in a group.
77
Upstream API: GitLab REST API docs https://docs.gitlab.com/api/group_service_accounts/#list-service-account-users
88
---
99

1010
# gitlab_group_service_account (Data Source)
1111

12-
The `gitlab_group_service_account` data source retrieves information about a gitlab service account for a group.
12+
The `gitlab_group_service_account` data source retrieves information about a GitLab service account in a group.
1313

1414
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/group_service_accounts/#list-service-account-users)
1515

16+
## Example Usage
1617

18+
```terraform
19+
data "gitlab_group" "example" {
20+
id = "foo/bar/baz"
21+
}
22+
23+
# Basic example
24+
data "gitlab_group_service_account" "example" {
25+
service_account_id = 1
26+
group = data.gitlab_group.example.id
27+
}
28+
```
1729

1830
<!-- schema generated by tfplugindocs -->
1931
## Schema
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gitlab_project_merge_requests Data Source - terraform-provider-gitlab"
4+
subcategory: ""
5+
description: |-
6+
The gitlab_project_merge_requests data source retrieves
7+
information about a list of merge requests related to a specific project.
8+
Upstream API: GitLab REST API docs https://docs.gitlab.com/api/merge_requests/#list-project-merge-requests
9+
---
10+
11+
# gitlab_project_merge_requests (Data Source)
12+
13+
The `gitlab_project_merge_requests` data source retrieves
14+
information about a list of merge requests related to a specific project.
15+
16+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/merge_requests/#list-project-merge-requests)
17+
18+
## Example Usage
19+
20+
```terraform
21+
data "gitlab_project_merge_requests" "example_one" {
22+
project = "123"
23+
target_branch = "main"
24+
wip = "yes"
25+
}
26+
27+
data "gitlab_project_merge_requests" "example_two" {
28+
project = "company/group/project1"
29+
author_id = 5
30+
created_after = "2024-07-25T12:00:00Z"
31+
}
32+
```
33+
34+
<!-- schema generated by tfplugindocs -->
35+
## Schema
36+
37+
### Required
38+
39+
- `project` (String) The ID or path of the project.
40+
41+
### Optional
42+
43+
- `author_id` (Number) Return merge requests created by the given user ID.
44+
- `author_username` (String) Return merge requests created by the given username.
45+
- `created_after` (String) Return merge requests created after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
46+
- `created_before` (String) Return merge requests created before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
47+
- `iids` (List of Number) The unique internal IDs of the merge requests.
48+
- `milestone` (String) Return only merge requests for a specific milestone. `None` returns merge requests with no milestone. `Any` returns merge requests that have an assigned milestone.
49+
- `my_reaction_emoji` (String) Return merge requests reacted to by the authenticated user with the given emoji. `None` returns issues not given a reaction. `Any` returns issues given at least one reaction.
50+
- `order_by` (String) Return requests ordered by `created_at`, `title` or `updated_at`. Default is `created_at`.
51+
- `reviewer_username` (String) Return merge requests reviewed by the given username. `None` returns merge requests with no reviews. `Any` returns merge requests with any reviewer.
52+
- `scope` (String) Return merge requests for the given scope: `created_by_me`, `assigned_to_me`, or `all`.
53+
- `search` (String) Search merge requests against their `title` or `description`.
54+
- `sort` (String) Return requests sorted in `asc` or `desc` order. Default is `desc`.
55+
- `source_branch` (String) Return merge requests with the given source branch.
56+
- `state` (String) Return all merge requests (all) or just those that are opened, closed, locked, or merged.
57+
- `target_branch` (String) Return merge requests with the given target branch.
58+
- `updated_after` (String) Return merge requests updated after the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
59+
- `updated_before` (String) Return merge requests updated before the given time. Expected in RFC3339 format (2006-01-02T15:04:05Z).
60+
- `wip` (String) Filter merge requests against their wip status. `yes` to return only draft merge requests, `no` to return non-draft merge requests.
61+
62+
### Read-Only
63+
64+
- `merge_requests` (Attributes List) The list of merge requests. (see [below for nested schema](#nestedatt--merge_requests))
65+
66+
<a id="nestedatt--merge_requests"></a>
67+
### Nested Schema for `merge_requests`
68+
69+
Read-Only:
70+
71+
- `assignee` (Attributes) First assignee of the merge request. (see [below for nested schema](#nestedatt--merge_requests--assignee))
72+
- `assignees` (Attributes List) Assignees of the merge request. (see [below for nested schema](#nestedatt--merge_requests--assignees))
73+
- `author` (Attributes) User who created this merge request. (see [below for nested schema](#nestedatt--merge_requests--author))
74+
- `blocking_discussions_resolved` (Boolean) Indicates if all discussions are resolved only if all are
75+
required before merge request can be merged.
76+
- `closed_at` (String) Timestamp of when the merge request was closed.
77+
- `closed_by` (Attributes) User who closed this merge request. (see [below for nested schema](#nestedatt--merge_requests--closed_by))
78+
- `created_at` (String) Timestamp of when the merge request was created.
79+
- `id` (Number) The unique instance level ID of the merge request.
80+
- `iid` (Number) The unique project level ID of the merge request.
81+
82+
<a id="nestedatt--merge_requests--assignee"></a>
83+
### Nested Schema for `merge_requests.assignee`
84+
85+
Read-Only:
86+
87+
- `avatar_url` (String) A link to the user's avatar image.
88+
- `id` (Number) The internal ID number of the user.
89+
- `name` (String) The name of the user.
90+
- `state` (String) The state of the user account.
91+
- `username` (String) The username of the user.
92+
- `web_url` (String) A link to the user's profile page.
93+
94+
95+
<a id="nestedatt--merge_requests--assignees"></a>
96+
### Nested Schema for `merge_requests.assignees`
97+
98+
Read-Only:
99+
100+
- `avatar_url` (String) A link to the user's avatar image.
101+
- `id` (Number) The internal ID number of the user.
102+
- `name` (String) The name of the user.
103+
- `state` (String) The state of the user account.
104+
- `username` (String) The username of the user.
105+
- `web_url` (String) A link to the user's profile page.
106+
107+
108+
<a id="nestedatt--merge_requests--author"></a>
109+
### Nested Schema for `merge_requests.author`
110+
111+
Read-Only:
112+
113+
- `avatar_url` (String) A link to the user's avatar image.
114+
- `id` (Number) The internal ID number of the user.
115+
- `name` (String) The name of the user.
116+
- `state` (String) The state of the user account.
117+
- `username` (String) The username of the user.
118+
- `web_url` (String) A link to the user's profile page.
119+
120+
121+
<a id="nestedatt--merge_requests--closed_by"></a>
122+
### Nested Schema for `merge_requests.closed_by`
123+
124+
Read-Only:
125+
126+
- `avatar_url` (String) A link to the user's avatar image.
127+
- `id` (Number) The internal ID number of the user.
128+
- `name` (String) The name of the user.
129+
- `state` (String) The state of the user account.
130+
- `username` (String) The username of the user.
131+
- `web_url` (String) A link to the user's profile page.

docs/data-sources/projects.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Read-Only:
9898
- `ci_default_git_depth` (Number)
9999
- `ci_delete_pipelines_in_seconds` (Number)
100100
- `ci_forward_deployment_enabled` (Boolean)
101+
- `ci_forward_deployment_rollback_allowed` (Boolean)
101102
- `ci_id_token_sub_claim_components` (List of String)
102103
- `ci_pipeline_variables_minimum_override_role` (String)
103104
- `ci_restrict_pipeline_cancellation_role` (String)

docs/data-sources/user.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ data "gitlab_user" "example-two" {
4040
### Optional
4141

4242
- `email` (String) The public email address of the user.
43+
- `email_exact_match` (Boolean) (Experimental) If true, returns only an exact match. Otherwise, fuzzy matching might return the closest result. If no exact match is available, the data source returns an error.
4344
- `namespace_id` (Number) The ID of the user's namespace. Requires admin token to access this field.
4445
- `user_id` (Number) The ID of the user.
4546
- `username` (String) The username of the user.

docs/data-sources/user_sshkeys.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,29 @@
33
page_title: "gitlab_user_sshkeys Data Source - terraform-provider-gitlab"
44
subcategory: ""
55
description: |-
6-
The gitlab_user_sshkeys data source allows a list of SSH keys to be retrieved by either the user ID or username.
6+
The gitlab_user_sshkeys data source retrieves a list of SSH keys for a user.
77
Upstream API: GitLab REST API docs https://docs.gitlab.com/api/user_keys/#list-all-ssh-keys-for-a-user
88
---
99

1010
# gitlab_user_sshkeys (Data Source)
1111

12-
The `gitlab_user_sshkeys` data source allows a list of SSH keys to be retrieved by either the user ID or username.
12+
The `gitlab_user_sshkeys` data source retrieves a list of SSH keys for a user.
1313

1414
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/api/user_keys/#list-all-ssh-keys-for-a-user)
1515

16+
## Example Usage
1617

18+
```terraform
19+
# Lookup by user ID
20+
data "gitlab_user_sshkeys" "example" {
21+
user_id = 1
22+
}
23+
24+
# Lookup by username
25+
data "gitlab_user_sshkeys" "example" {
26+
username = "test.person"
27+
}
28+
```
1729

1830
<!-- schema generated by tfplugindocs -->
1931
## Schema

docs/resources/application.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ This is only populated when creating a new application. This attribute is not av
5151

5252
## Import
5353

54-
Starting in Terraform v1.5.0 you can use an [import block](https://developer.hashicorp.com/terraform/language/import) to import `gitlab_application`. For example:
54+
Starting in Terraform v1.5.0, you can use an [import block](https://developer.hashicorp.com/terraform/language/import) to import `gitlab_application`. For example:
55+
5556
```terraform
5657
import {
5758
to = gitlab_application.example
5859
id = "see CLI command below for ID"
5960
}
6061
```
6162

62-
Import using the CLI is supported using the following syntax:
63+
Importing using the CLI is supported with the following syntax:
6364

6465
```shell
6566
# Gitlab applications can be imported with their id, e.g.

0 commit comments

Comments
 (0)