Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DevOps.getRepositorySetting
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepositorySetting = oci.DevOps.getRepositorySetting({
    repositoryId: testRepository.id,
});
import pulumi
import pulumi_oci as oci
test_repository_setting = oci.DevOps.get_repository_setting(repository_id=test_repository["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/devops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devops.GetRepositorySetting(ctx, &devops.GetRepositorySettingArgs{
			RepositoryId: testRepository.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testRepositorySetting = Oci.DevOps.GetRepositorySetting.Invoke(new()
    {
        RepositoryId = testRepository.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.DevOpsFunctions;
import com.pulumi.oci.DevOps.inputs.GetRepositorySettingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testRepositorySetting = DevOpsFunctions.getRepositorySetting(GetRepositorySettingArgs.builder()
            .repositoryId(testRepository.id())
            .build());
    }
}
variables:
  testRepositorySetting:
    fn::invoke:
      function: oci:DevOps:getRepositorySetting
      arguments:
        repositoryId: ${testRepository.id}
Using getRepositorySetting
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRepositorySetting(args: GetRepositorySettingArgs, opts?: InvokeOptions): Promise<GetRepositorySettingResult>
function getRepositorySettingOutput(args: GetRepositorySettingOutputArgs, opts?: InvokeOptions): Output<GetRepositorySettingResult>def get_repository_setting(repository_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRepositorySettingResult
def get_repository_setting_output(repository_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRepositorySettingResult]func LookupRepositorySetting(ctx *Context, args *LookupRepositorySettingArgs, opts ...InvokeOption) (*LookupRepositorySettingResult, error)
func LookupRepositorySettingOutput(ctx *Context, args *LookupRepositorySettingOutputArgs, opts ...InvokeOption) LookupRepositorySettingResultOutput> Note: This function is named LookupRepositorySetting in the Go SDK.
public static class GetRepositorySetting 
{
    public static Task<GetRepositorySettingResult> InvokeAsync(GetRepositorySettingArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositorySettingResult> Invoke(GetRepositorySettingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositorySettingResult> getRepositorySetting(GetRepositorySettingArgs args, InvokeOptions options)
public static Output<GetRepositorySettingResult> getRepositorySetting(GetRepositorySettingArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getRepositorySetting:getRepositorySetting
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RepositoryId string
- Unique repository identifier.
- RepositoryId string
- Unique repository identifier.
- repositoryId String
- Unique repository identifier.
- repositoryId string
- Unique repository identifier.
- repository_id str
- Unique repository identifier.
- repositoryId String
- Unique repository identifier.
getRepositorySetting Result
The following output properties are available:
- ApprovalRules List<GetRepository Setting Approval Rule> 
- List of approval rules which must be statisfied before pull requests which match the rules can be merged
- Id string
- MergeChecks List<GetRepository Setting Merge Check> 
- Criteria which must be satisfied to merge a pull request.
- MergeSettings List<GetRepository Setting Merge Setting> 
- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- RepositoryId string
- ApprovalRules []GetRepository Setting Approval Rule 
- List of approval rules which must be statisfied before pull requests which match the rules can be merged
- Id string
- MergeChecks []GetRepository Setting Merge Check 
- Criteria which must be satisfied to merge a pull request.
- MergeSettings []GetRepository Setting Merge Setting 
- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- RepositoryId string
- approvalRules List<GetRepository Setting Approval Rule> 
- List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id String
- mergeChecks List<GetRepository Setting Merge Check> 
- Criteria which must be satisfied to merge a pull request.
- mergeSettings List<GetRepository Setting Merge Setting> 
- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- repositoryId String
- approvalRules GetRepository Setting Approval Rule[] 
- List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id string
- mergeChecks GetRepository Setting Merge Check[] 
- Criteria which must be satisfied to merge a pull request.
- mergeSettings GetRepository Setting Merge Setting[] 
- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- repositoryId string
- approval_rules Sequence[GetRepository Setting Approval Rule] 
- List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id str
- merge_checks Sequence[GetRepository Setting Merge Check] 
- Criteria which must be satisfied to merge a pull request.
- merge_settings Sequence[GetRepository Setting Merge Setting] 
- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- repository_id str
- approvalRules List<Property Map>
- List of approval rules which must be statisfied before pull requests which match the rules can be merged
- id String
- mergeChecks List<Property Map>
- Criteria which must be satisfied to merge a pull request.
- mergeSettings List<Property Map>
- Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
- repositoryId String
Supporting Types
GetRepositorySettingApprovalRule    
- Items
List<GetRepository Setting Approval Rule Item> 
- List of approval rules.
- Items
[]GetRepository Setting Approval Rule Item 
- List of approval rules.
- items
List<GetRepository Setting Approval Rule Item> 
- List of approval rules.
- items
GetRepository Setting Approval Rule Item[] 
- List of approval rules.
- items
Sequence[GetRepository Setting Approval Rule Item] 
- List of approval rules.
- items List<Property Map>
- List of approval rules.
GetRepositorySettingApprovalRuleItem     
- DestinationBranch string
- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- MinApprovals intCount 
- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- Name string
- Name which is used to uniquely identify an approval rule.
- Reviewers
List<GetRepository Setting Approval Rule Item Reviewer> 
- 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.
- DestinationBranch string
- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- MinApprovals intCount 
- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- Name string
- Name which is used to uniquely identify an approval rule.
- Reviewers
[]GetRepository Setting Approval Rule Item Reviewer 
- 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.
- destinationBranch String
- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- minApprovals IntegerCount 
- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name String
- Name which is used to uniquely identify an approval rule.
- reviewers
List<GetRepository Setting Approval Rule Item Reviewer> 
- 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.
- destinationBranch string
- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- minApprovals numberCount 
- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name string
- Name which is used to uniquely identify an approval rule.
- reviewers
GetRepository Setting Approval Rule Item Reviewer[] 
- 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.
- destination_branch str
- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- min_approvals_ intcount 
- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name str
- Name which is used to uniquely identify an approval rule.
- reviewers
Sequence[GetRepository Setting Approval Rule Item Reviewer] 
- 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.
- destinationBranch String
- Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- minApprovals NumberCount 
- Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- name String
- Name which is used to uniquely identify an approval rule.
- reviewers List<Property Map>
- 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.
GetRepositorySettingApprovalRuleItemReviewer      
- PrincipalId string
- the OCID of the principal
- PrincipalName string
- the name of the principal
- PrincipalState string
- The state of the principal, it can be active or inactive or suppressed for emails
- PrincipalType string
- the type of principal
- PrincipalId string
- the OCID of the principal
- PrincipalName string
- the name of the principal
- PrincipalState string
- The state of the principal, it can be active or inactive or suppressed for emails
- PrincipalType string
- the type of principal
- principalId String
- the OCID of the principal
- principalName String
- the name of the principal
- principalState String
- The state of the principal, it can be active or inactive or suppressed for emails
- principalType String
- the type of principal
- principalId string
- the OCID of the principal
- principalName string
- the name of the principal
- principalState string
- The state of the principal, it can be active or inactive or suppressed for emails
- principalType string
- the type of principal
- principal_id str
- the OCID of the principal
- principal_name str
- the name of the principal
- principal_state str
- The state of the principal, it can be active or inactive or suppressed for emails
- principal_type str
- the type of principal
- principalId String
- the OCID of the principal
- principalName String
- the name of the principal
- principalState String
- The state of the principal, it can be active or inactive or suppressed for emails
- principalType String
- the type of principal
GetRepositorySettingMergeCheck    
- LastBuild stringSucceeded 
- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
- LastBuild stringSucceeded 
- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
- lastBuild StringSucceeded 
- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
- lastBuild stringSucceeded 
- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
- last_build_ strsucceeded 
- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
- lastBuild StringSucceeded 
- Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
GetRepositorySettingMergeSetting    
- AllowedMerge List<string>Strategies 
- List of merge strategies which are allowed for a Project or Repository.
- DefaultMerge stringStrategy 
- Default type of merge strategy associated with the a Project or Repository.
- AllowedMerge []stringStrategies 
- List of merge strategies which are allowed for a Project or Repository.
- DefaultMerge stringStrategy 
- Default type of merge strategy associated with the a Project or Repository.
- allowedMerge List<String>Strategies 
- List of merge strategies which are allowed for a Project or Repository.
- defaultMerge StringStrategy 
- Default type of merge strategy associated with the a Project or Repository.
- allowedMerge string[]Strategies 
- List of merge strategies which are allowed for a Project or Repository.
- defaultMerge stringStrategy 
- Default type of merge strategy associated with the a Project or Repository.
- allowed_merge_ Sequence[str]strategies 
- List of merge strategies which are allowed for a Project or Repository.
- default_merge_ strstrategy 
- Default type of merge strategy associated with the a Project or Repository.
- allowedMerge List<String>Strategies 
- List of merge strategies which are allowed for a Project or Repository.
- defaultMerge StringStrategy 
- Default type of merge strategy associated with the a Project or Repository.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.