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.6.0 (2023-11-16)
2
+
3
+
This release was tested against GitLab 16.4, 16.5, and 16.6 for both CE and EE
4
+
5
+
KNOWN ISSUES:
6
+
7
+
- Attempting to use the `gitlab_users` datasource with `sort` will not return users in the specified sort order when used with GitLab 16.6.0, as GitLab 16.6.0 uses relevancy sorting and ignores `sort`. This will be resolved with GitLab 16.6.1.
8
+
9
+
IMPROVEMENTS:
10
+
11
+
-**New Resource:**`gitlab_project_level_notifications` allows managing notification events for project ([!1715](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1715))
12
+
- resource/gitlab_project_approval_rule: added support for `applies_to_all_protected_branches` ([!1755](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1755))
13
+
- resource/gitlab_pipeline_schedule: added support for `take_ownership`, which will take ownership of the pipeline schedule prior to attempting an update ([!1745](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1745))
14
+
- resource/gitlab_group: added support for `push_rules` ([!1730](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1730))
15
+
16
+
BUG FIXES:
17
+
18
+
- resource/gitlab_user_runner: Fixed an issue where not including `maximum_timeout` could cause an issue when updating the runner ([!1758](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1758))
19
+
- datasource/gitlab_user: When using `email`, the the data source will now return the first user returned from the API instead of encountering an error when more than one is identified. When used with GitLab 16.6.0, this will always be the exact match if an exact match is available. ([!1743](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1743))
20
+
21
+
1
22
## 16.5.0 (2023-10-22)
2
23
3
24
This release was tested against GitLab 16.3, 16.4, and 16.5 for both CE and EE
-`runners_token` (String, Sensitive) The group level registration token to use during runner setup.
77
92
-`web_url` (String) Web URL of the group.
78
93
94
+
<aid="nestedblock--push_rules"></a>
95
+
### Nested Schema for `push_rules`
96
+
97
+
Optional:
98
+
99
+
-`author_email_regex` (String) All commit author emails must match this regex, e.g. `@my-company.com$`.
100
+
-`branch_name_regex` (String) All branch names must match this regex, e.g. `(feature|hotfix)\/*`.
101
+
-`commit_committer_check` (Boolean) Only commits pushed using verified emails are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
102
+
-`commit_message_negative_regex` (String) No commit message is allowed to match this regex, for example `ssh\:\/\/`.
103
+
-`commit_message_regex` (String) All commit messages must match this regex, e.g. `Fixed \d+\..*`.
104
+
-`deny_delete_tag` (Boolean) Deny deleting a tag.
105
+
-`file_name_regex` (String) Filenames matching the regular expression provided in this attribute are not allowed, for example, `(jar|exe)$`.
106
+
-`max_file_size` (Number) Maximum file size (MB) allowed.
107
+
-`member_check` (Boolean) Allows only GitLab users to author commits.
108
+
-`prevent_secrets` (Boolean) GitLab will reject any files that are likely to contain secrets.
109
+
-`reject_unsigned_commits` (Boolean) Only commits signed through GPG are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
-`active` (Boolean) The activation of pipeline schedule. If false is set, the pipeline schedule will deactivated initially.
40
40
-`cron_timezone` (String) The timezone.
41
+
-`take_ownership` (Boolean) When set to `true`, the user represented by the token running Terraform will take ownership of the scheduled pipeline prior to editing it. This can help when managing scheduled pipeline drift when other users are making changes outside Terraform.
41
42
42
43
### Read-Only
43
44
44
45
-`id` (String) The ID of this resource.
46
+
-`owner` (Number) The ID of the user that owns the pipeline schedule.
45
47
-`pipeline_schedule_id` (Number) The pipeline schedule id.
-`applies_to_all_protected_branches` (Boolean) Whether the rule is applied to all protected branches. If set to 'true', the value of `protected_branch_ids` is ignored. Default is 'false'.
93
104
-`disable_importing_default_any_approver_rule_on_create` (Boolean) When this flag is set, the default `any_approver` rule will not be imported if present.
94
105
-`group_ids` (Set of Number) A list of group IDs whose members can approve of the merge request.
95
106
-`protected_branch_ids` (Set of Number) A list of protected branch IDs (not branch names) for which the rule applies.
The gitlab_project_level_notifications resource allows to manage notifications for a project.
7
+
~> While the API supports both groups and projects, this resource only supports projects currently.
8
+
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/notification_settings.html#group--project-level-notification-settings
9
+
---
10
+
11
+
# gitlab_project_level_notifications (Resource)
12
+
13
+
The `gitlab_project_level_notifications` resource allows to manage notifications for a project.
14
+
15
+
~> While the API supports both groups and projects, this resource only supports projects currently.
16
+
17
+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/notification_settings.html#group--project-level-notification-settings)
18
+
19
+
20
+
21
+
<!-- schema generated by tfplugindocs -->
22
+
## Schema
23
+
24
+
### Required
25
+
26
+
-`project` (String) The ID or URL-encoded path of a project where notifications will be configured.
27
+
28
+
### Optional
29
+
30
+
-`close_issue` (Boolean) Enable notifications for closed issues. Can only be used when `level` is `custom`.
31
+
-`close_merge_request` (Boolean) Enable notifications for closed merge requests. Can only be used when `level` is `custom`.
32
+
-`failed_pipeline` (Boolean) Enable notifications for failed pipelines. Can only be used when `level` is `custom`.
33
+
-`fixed_pipeline` (Boolean) Enable notifications for fixed pipelines. Can only be used when `level` is `custom`.
34
+
-`issue_due` (Boolean) Enable notifications for due issues. Can only be used when `level` is `custom`.
35
+
-`level` (String) The level of the notification. Valid values are: `disabled`, `participating`, `watch`, `global`, `mention`, `custom`.
36
+
-`merge_merge_request` (Boolean) Enable notifications for merged merge requests. Can only be used when `level` is `custom`.
37
+
-`merge_when_pipeline_succeeds` (Boolean) Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when `level` is `custom`.
38
+
-`moved_project` (Boolean) Enable notifications for moved projects. Can only be used when `level` is `custom`.
39
+
-`new_issue` (Boolean) Enable notifications for new issues. Can only be used when `level` is `custom`.
40
+
-`new_merge_request` (Boolean) Enable notifications for new merge requests. Can only be used when `level` is `custom`.
41
+
-`new_note` (Boolean) Enable notifications for new notes on merge requests. Can only be used when `level` is `custom`.
42
+
-`push_to_merge_request` (Boolean) Enable notifications for push to merge request branches. Can only be used when `level` is `custom`.
43
+
-`reassign_issue` (Boolean) Enable notifications for issue reassignments. Can only be used when `level` is `custom`.
44
+
-`reassign_merge_request` (Boolean) Enable notifications for merge request reassignments. Can only be used when `level` is `custom`.
45
+
-`reopen_issue` (Boolean) Enable notifications for reopened issues. Can only be used when `level` is `custom`.
46
+
-`reopen_merge_request` (Boolean) Enable notifications for reopened merge requests. Can only be used when `level` is `custom`.
47
+
-`success_pipeline` (Boolean) Enable notifications for successful pipelines. Can only be used when `level` is `custom`.
48
+
49
+
### Read-Only
50
+
51
+
-`id` (String) The ID of the resource. Matches the `project` value.
0 commit comments