Data Source: oci_devops_repository_setting
This data source provides details about a specific Repository Setting resource in Oracle Cloud Infrastructure Devops service.
Retrieves a repository’s settings details.
Example Usage
data "oci_devops_repository_setting" "test_repository_setting" {
#Required
repository_id = oci_devops_repository.test_repository.id
}
Argument Reference
The following arguments are supported:
repository_id- (Required) Unique repository identifier.
Attributes Reference
The following attributes are exported:
approval_rules- List of approval rules which must be statisfied before pull requests which match the rules can be mergeditems- List of approval rules.destination_branch- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requestsmin_approvals_count- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfiedname- Name which is used to uniquely identify an approval rule.reviewers- List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.principal_id- the OCID of the principalprincipal_name- the name of the principalprincipal_state- The state of the principal, it can be active or inactive or suppressed for emailsprincipal_type- the type of principal
merge_checks- Criteria which must be satisfied to merge a pull request.last_build_succeeded- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
merge_settings- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.allowed_merge_strategies- List of merge strategies which are allowed for a Project or Repository.default_merge_strategy- Default type of merge strategy associated with the a Project or Repository.