oci_devops_repository_setting

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

Updates the settings for a repository.

Example Usage

resource "oci_devops_repository_setting" "test_repository_setting" {
	#Required
	repository_id = oci_devops_repository.test_repository.id

	#Optional
	approval_rules {
		#Required
		items {
			#Required
			min_approvals_count = var.repository_setting_approval_rules_items_min_approvals_count
			name = var.repository_setting_approval_rules_items_name

			#Optional
			destination_branch = var.repository_setting_approval_rules_items_destination_branch
			reviewers {
				#Required
				principal_id = oci_devops_principal.test_principal.id
			}
		}
	}
	merge_checks {
		#Required
		last_build_succeeded = var.repository_setting_merge_checks_last_build_succeeded
	}
	merge_settings {
		#Required
		allowed_merge_strategies = var.repository_setting_merge_settings_allowed_merge_strategies
		default_merge_strategy = var.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 Repository Setting * update - (Defaults to 20 minutes), when updating the Repository Setting * delete - (Defaults to 20 minutes), when destroying the Repository Setting

Import

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

$ terraform import oci_devops_repository_setting.test_repository_setting "repositories/{repositoryId}/repositorySettings"