oci_devops_project_repository_setting

This resource provides the Project Repository Setting resource in Oracle Cloud Infrastructure Devops service.

Updates the repository settings for a project.

Example Usage

resource "oci_devops_project_repository_setting" "test_project_repository_setting" {
	#Required
	project_id = oci_devops_project.test_project.id

	#Optional
	approval_rules {
		#Required
		items {
			#Required
			min_approvals_count = var.project_repository_setting_approval_rules_items_min_approvals_count
			name = var.project_repository_setting_approval_rules_items_name

			#Optional
			destination_branch = var.project_repository_setting_approval_rules_items_destination_branch
			reviewers {
				#Required
				principal_id = oci_devops_principal.test_principal.id
			}
		}
	}
	merge_settings {
		#Required
		allowed_merge_strategies = var.project_repository_setting_merge_settings_allowed_merge_strategies
		default_merge_strategy = var.project_repository_setting_merge_settings_default_merge_strategy
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Project Repository Setting * update - (Defaults to 20 minutes), when updating the Project Repository Setting * delete - (Defaults to 20 minutes), when destroying the Project Repository Setting

Import

ProjectRepositorySettings can be imported using the id, e.g.

$ terraform import oci_devops_project_repository_setting.test_project_repository_setting "projects/{projectId}/repositorySettings"