Skip to content

dhoppeIT/terraform-gitlab-project_level_mr_approvals

Repository files navigation

terraform-gitlab-project_level_mr_approvals

Terraform module to manage the following Twingate resources:

  • gitlab_project_level_mr_approvals

Usage

Copy and paste the following code snippet to your Terraform configuration, specify the required variables and run the command terraform init.

module "gitlab_project_level_mr_approvals" {
  source  = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-project-level-mr-approvals/local"
  version = "1.0.0"

  project = "example-group-48165/example-project"
}

⚠️ This feature requires a GitLab Enterprise instance.

Requirements

Name Version
terraform >= 1.0
gitlab ~> 18.0

Providers

Name Version
gitlab ~> 18.0

Modules

No modules.

Resources

Name Type
gitlab_project_level_mr_approvals.this resource

Inputs

Name Description Type Default Required
disable_overriding_approvers_per_merge_request Set to true to disable overriding approvers per merge request bool false no
merge_requests_author_approval Set to true to allow merge requests authors to approve their own merge requests bool false no
merge_requests_disable_committers_approval Set to true to disable merge request committers from approving their own merge requests bool false no
project The ID or URL-encoded path of a project to change MR approval configuration string n/a yes
require_password_to_approve Set to true to require authentication to approve merge requests bool false no
reset_approvals_on_push Set to true to remove all approvals in a merge request when new commits are pushed to its source branch bool true no
selective_code_owner_removals Reset approvals from Code Owners if their files changed bool false no

Outputs

Name Description
id The ID of the resource

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.