1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. getProjectRepositorySetting
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.DevOps.getProjectRepositorySetting

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides details about a specific Project Repository Setting resource in Oracle Cloud Infrastructure Devops service.

Retrieves a project’s repository settings details.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testProjectRepositorySetting = oci.DevOps.getProjectRepositorySetting({
    projectId: testProject.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_project_repository_setting = oci.DevOps.get_project_repository_setting(project_id=test_project["id"])
Copy
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.GetProjectRepositorySetting(ctx, &devops.GetProjectRepositorySettingArgs{
			ProjectId: testProject.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testProjectRepositorySetting = Oci.DevOps.GetProjectRepositorySetting.Invoke(new()
    {
        ProjectId = testProject.Id,
    });

});
Copy
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.GetProjectRepositorySettingArgs;
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 testProjectRepositorySetting = DevOpsFunctions.getProjectRepositorySetting(GetProjectRepositorySettingArgs.builder()
            .projectId(testProject.id())
            .build());

    }
}
Copy
variables:
  testProjectRepositorySetting:
    fn::invoke:
      function: oci:DevOps:getProjectRepositorySetting
      arguments:
        projectId: ${testProject.id}
Copy

Using getProjectRepositorySetting

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 getProjectRepositorySetting(args: GetProjectRepositorySettingArgs, opts?: InvokeOptions): Promise<GetProjectRepositorySettingResult>
function getProjectRepositorySettingOutput(args: GetProjectRepositorySettingOutputArgs, opts?: InvokeOptions): Output<GetProjectRepositorySettingResult>
Copy
def get_project_repository_setting(project_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetProjectRepositorySettingResult
def get_project_repository_setting_output(project_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetProjectRepositorySettingResult]
Copy
func GetProjectRepositorySetting(ctx *Context, args *GetProjectRepositorySettingArgs, opts ...InvokeOption) (*GetProjectRepositorySettingResult, error)
func GetProjectRepositorySettingOutput(ctx *Context, args *GetProjectRepositorySettingOutputArgs, opts ...InvokeOption) GetProjectRepositorySettingResultOutput
Copy

> Note: This function is named GetProjectRepositorySetting in the Go SDK.

public static class GetProjectRepositorySetting 
{
    public static Task<GetProjectRepositorySettingResult> InvokeAsync(GetProjectRepositorySettingArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectRepositorySettingResult> Invoke(GetProjectRepositorySettingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetProjectRepositorySettingResult> getProjectRepositorySetting(GetProjectRepositorySettingArgs args, InvokeOptions options)
public static Output<GetProjectRepositorySettingResult> getProjectRepositorySetting(GetProjectRepositorySettingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DevOps/getProjectRepositorySetting:getProjectRepositorySetting
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectId This property is required. string
Unique project identifier.
ProjectId This property is required. string
Unique project identifier.
projectId This property is required. String
Unique project identifier.
projectId This property is required. string
Unique project identifier.
project_id This property is required. str
Unique project identifier.
projectId This property is required. String
Unique project identifier.

getProjectRepositorySetting Result

The following output properties are available:

ApprovalRules List<GetProjectRepositorySettingApprovalRule>
List of approval rules which must be statisfied before pull requests which match the rules can be merged
Id string
MergeSettings List<GetProjectRepositorySettingMergeSetting>
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
ProjectId string
ApprovalRules []GetProjectRepositorySettingApprovalRule
List of approval rules which must be statisfied before pull requests which match the rules can be merged
Id string
MergeSettings []GetProjectRepositorySettingMergeSetting
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
ProjectId string
approvalRules List<GetProjectRepositorySettingApprovalRule>
List of approval rules which must be statisfied before pull requests which match the rules can be merged
id String
mergeSettings List<GetProjectRepositorySettingMergeSetting>
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
projectId String
approvalRules GetProjectRepositorySettingApprovalRule[]
List of approval rules which must be statisfied before pull requests which match the rules can be merged
id string
mergeSettings GetProjectRepositorySettingMergeSetting[]
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
projectId string
approval_rules Sequence[devops.GetProjectRepositorySettingApprovalRule]
List of approval rules which must be statisfied before pull requests which match the rules can be merged
id str
merge_settings Sequence[devops.GetProjectRepositorySettingMergeSetting]
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
project_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
mergeSettings List<Property Map>
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
projectId String

Supporting Types

GetProjectRepositorySettingApprovalRule

Items This property is required. List<GetProjectRepositorySettingApprovalRuleItem>
List of approval rules.
Items This property is required. []GetProjectRepositorySettingApprovalRuleItem
List of approval rules.
items This property is required. List<GetProjectRepositorySettingApprovalRuleItem>
List of approval rules.
items This property is required. GetProjectRepositorySettingApprovalRuleItem[]
List of approval rules.
items This property is required. Sequence[devops.GetProjectRepositorySettingApprovalRuleItem]
List of approval rules.
items This property is required. List<Property Map>
List of approval rules.

GetProjectRepositorySettingApprovalRuleItem

DestinationBranch This property is required. 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
MinApprovalsCount This property is required. int
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
Name This property is required. string
Name which is used to uniquely identify an approval rule.
Reviewers This property is required. List<GetProjectRepositorySettingApprovalRuleItemReviewer>
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 This property is required. 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
MinApprovalsCount This property is required. int
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
Name This property is required. string
Name which is used to uniquely identify an approval rule.
Reviewers This property is required. []GetProjectRepositorySettingApprovalRuleItemReviewer
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 This property is required. 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
minApprovalsCount This property is required. Integer
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
name This property is required. String
Name which is used to uniquely identify an approval rule.
reviewers This property is required. List<GetProjectRepositorySettingApprovalRuleItemReviewer>
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 This property is required. 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
minApprovalsCount This property is required. number
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
name This property is required. string
Name which is used to uniquely identify an approval rule.
reviewers This property is required. GetProjectRepositorySettingApprovalRuleItemReviewer[]
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 This property is required. 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_count This property is required. int
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
name This property is required. str
Name which is used to uniquely identify an approval rule.
reviewers This property is required. Sequence[devops.GetProjectRepositorySettingApprovalRuleItemReviewer]
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 This property is required. 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
minApprovalsCount This property is required. Number
Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
name This property is required. String
Name which is used to uniquely identify an approval rule.
reviewers This property is required. 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.

GetProjectRepositorySettingApprovalRuleItemReviewer

PrincipalId This property is required. string
the OCID of the principal
PrincipalName This property is required. string
the name of the principal
PrincipalState This property is required. string
The state of the principal, it can be active or inactive or suppressed for emails
PrincipalType This property is required. string
the type of principal
PrincipalId This property is required. string
the OCID of the principal
PrincipalName This property is required. string
the name of the principal
PrincipalState This property is required. string
The state of the principal, it can be active or inactive or suppressed for emails
PrincipalType This property is required. string
the type of principal
principalId This property is required. String
the OCID of the principal
principalName This property is required. String
the name of the principal
principalState This property is required. String
The state of the principal, it can be active or inactive or suppressed for emails
principalType This property is required. String
the type of principal
principalId This property is required. string
the OCID of the principal
principalName This property is required. string
the name of the principal
principalState This property is required. string
The state of the principal, it can be active or inactive or suppressed for emails
principalType This property is required. string
the type of principal
principal_id This property is required. str
the OCID of the principal
principal_name This property is required. str
the name of the principal
principal_state This property is required. str
The state of the principal, it can be active or inactive or suppressed for emails
principal_type This property is required. str
the type of principal
principalId This property is required. String
the OCID of the principal
principalName This property is required. String
the name of the principal
principalState This property is required. String
The state of the principal, it can be active or inactive or suppressed for emails
principalType This property is required. String
the type of principal

GetProjectRepositorySettingMergeSetting

AllowedMergeStrategies This property is required. List<string>
List of merge strategies which are allowed for a Project or Repository.
DefaultMergeStrategy This property is required. string
Default type of merge strategy associated with the a Project or Repository.
AllowedMergeStrategies This property is required. []string
List of merge strategies which are allowed for a Project or Repository.
DefaultMergeStrategy This property is required. string
Default type of merge strategy associated with the a Project or Repository.
allowedMergeStrategies This property is required. List<String>
List of merge strategies which are allowed for a Project or Repository.
defaultMergeStrategy This property is required. String
Default type of merge strategy associated with the a Project or Repository.
allowedMergeStrategies This property is required. string[]
List of merge strategies which are allowed for a Project or Repository.
defaultMergeStrategy This property is required. string
Default type of merge strategy associated with the a Project or Repository.
allowed_merge_strategies This property is required. Sequence[str]
List of merge strategies which are allowed for a Project or Repository.
default_merge_strategy This property is required. str
Default type of merge strategy associated with the a Project or Repository.
allowedMergeStrategies This property is required. List<String>
List of merge strategies which are allowed for a Project or Repository.
defaultMergeStrategy This property is required. String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi