1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. RepositorySetting
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.DevOps.RepositorySetting

Explore with Pulumi AI

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

Updates the settings for a repository.

Example Usage

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

const testRepositorySetting = new oci.devops.RepositorySetting("test_repository_setting", {
    repositoryId: testRepository.id,
    approvalRules: {
        items: [{
            minApprovalsCount: repositorySettingApprovalRulesItemsMinApprovalsCount,
            name: repositorySettingApprovalRulesItemsName,
            destinationBranch: repositorySettingApprovalRulesItemsDestinationBranch,
            reviewers: [{
                principalId: testPrincipal.id,
            }],
        }],
    },
    mergeChecks: {
        lastBuildSucceeded: repositorySettingMergeChecksLastBuildSucceeded,
    },
    mergeSettings: {
        allowedMergeStrategies: repositorySettingMergeSettingsAllowedMergeStrategies,
        defaultMergeStrategy: repositorySettingMergeSettingsDefaultMergeStrategy,
    },
});
Copy
import pulumi
import pulumi_oci as oci

test_repository_setting = oci.dev_ops.RepositorySetting("test_repository_setting",
    repository_id=test_repository["id"],
    approval_rules={
        "items": [{
            "min_approvals_count": repository_setting_approval_rules_items_min_approvals_count,
            "name": repository_setting_approval_rules_items_name,
            "destination_branch": repository_setting_approval_rules_items_destination_branch,
            "reviewers": [{
                "principal_id": test_principal["id"],
            }],
        }],
    },
    merge_checks={
        "last_build_succeeded": repository_setting_merge_checks_last_build_succeeded,
    },
    merge_settings={
        "allowed_merge_strategies": repository_setting_merge_settings_allowed_merge_strategies,
        "default_merge_strategy": repository_setting_merge_settings_default_merge_strategy,
    })
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.NewRepositorySetting(ctx, "test_repository_setting", &devops.RepositorySettingArgs{
			RepositoryId: pulumi.Any(testRepository.Id),
			ApprovalRules: &devops.RepositorySettingApprovalRulesArgs{
				Items: devops.RepositorySettingApprovalRulesItemArray{
					&devops.RepositorySettingApprovalRulesItemArgs{
						MinApprovalsCount: pulumi.Any(repositorySettingApprovalRulesItemsMinApprovalsCount),
						Name:              pulumi.Any(repositorySettingApprovalRulesItemsName),
						DestinationBranch: pulumi.Any(repositorySettingApprovalRulesItemsDestinationBranch),
						Reviewers: devops.RepositorySettingApprovalRulesItemReviewerArray{
							&devops.RepositorySettingApprovalRulesItemReviewerArgs{
								PrincipalId: pulumi.Any(testPrincipal.Id),
							},
						},
					},
				},
			},
			MergeChecks: &devops.RepositorySettingMergeChecksArgs{
				LastBuildSucceeded: pulumi.Any(repositorySettingMergeChecksLastBuildSucceeded),
			},
			MergeSettings: &devops.RepositorySettingMergeSettingsArgs{
				AllowedMergeStrategies: pulumi.Any(repositorySettingMergeSettingsAllowedMergeStrategies),
				DefaultMergeStrategy:   pulumi.Any(repositorySettingMergeSettingsDefaultMergeStrategy),
			},
		})
		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 testRepositorySetting = new Oci.DevOps.RepositorySetting("test_repository_setting", new()
    {
        RepositoryId = testRepository.Id,
        ApprovalRules = new Oci.DevOps.Inputs.RepositorySettingApprovalRulesArgs
        {
            Items = new[]
            {
                new Oci.DevOps.Inputs.RepositorySettingApprovalRulesItemArgs
                {
                    MinApprovalsCount = repositorySettingApprovalRulesItemsMinApprovalsCount,
                    Name = repositorySettingApprovalRulesItemsName,
                    DestinationBranch = repositorySettingApprovalRulesItemsDestinationBranch,
                    Reviewers = new[]
                    {
                        new Oci.DevOps.Inputs.RepositorySettingApprovalRulesItemReviewerArgs
                        {
                            PrincipalId = testPrincipal.Id,
                        },
                    },
                },
            },
        },
        MergeChecks = new Oci.DevOps.Inputs.RepositorySettingMergeChecksArgs
        {
            LastBuildSucceeded = repositorySettingMergeChecksLastBuildSucceeded,
        },
        MergeSettings = new Oci.DevOps.Inputs.RepositorySettingMergeSettingsArgs
        {
            AllowedMergeStrategies = repositorySettingMergeSettingsAllowedMergeStrategies,
            DefaultMergeStrategy = repositorySettingMergeSettingsDefaultMergeStrategy,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.RepositorySetting;
import com.pulumi.oci.DevOps.RepositorySettingArgs;
import com.pulumi.oci.DevOps.inputs.RepositorySettingApprovalRulesArgs;
import com.pulumi.oci.DevOps.inputs.RepositorySettingMergeChecksArgs;
import com.pulumi.oci.DevOps.inputs.RepositorySettingMergeSettingsArgs;
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) {
        var testRepositorySetting = new RepositorySetting("testRepositorySetting", RepositorySettingArgs.builder()
            .repositoryId(testRepository.id())
            .approvalRules(RepositorySettingApprovalRulesArgs.builder()
                .items(RepositorySettingApprovalRulesItemArgs.builder()
                    .minApprovalsCount(repositorySettingApprovalRulesItemsMinApprovalsCount)
                    .name(repositorySettingApprovalRulesItemsName)
                    .destinationBranch(repositorySettingApprovalRulesItemsDestinationBranch)
                    .reviewers(RepositorySettingApprovalRulesItemReviewerArgs.builder()
                        .principalId(testPrincipal.id())
                        .build())
                    .build())
                .build())
            .mergeChecks(RepositorySettingMergeChecksArgs.builder()
                .lastBuildSucceeded(repositorySettingMergeChecksLastBuildSucceeded)
                .build())
            .mergeSettings(RepositorySettingMergeSettingsArgs.builder()
                .allowedMergeStrategies(repositorySettingMergeSettingsAllowedMergeStrategies)
                .defaultMergeStrategy(repositorySettingMergeSettingsDefaultMergeStrategy)
                .build())
            .build());

    }
}
Copy
resources:
  testRepositorySetting:
    type: oci:DevOps:RepositorySetting
    name: test_repository_setting
    properties:
      repositoryId: ${testRepository.id}
      approvalRules:
        items:
          - minApprovalsCount: ${repositorySettingApprovalRulesItemsMinApprovalsCount}
            name: ${repositorySettingApprovalRulesItemsName}
            destinationBranch: ${repositorySettingApprovalRulesItemsDestinationBranch}
            reviewers:
              - principalId: ${testPrincipal.id}
      mergeChecks:
        lastBuildSucceeded: ${repositorySettingMergeChecksLastBuildSucceeded}
      mergeSettings:
        allowedMergeStrategies: ${repositorySettingMergeSettingsAllowedMergeStrategies}
        defaultMergeStrategy: ${repositorySettingMergeSettingsDefaultMergeStrategy}
Copy

Create RepositorySetting Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RepositorySetting(name: string, args: RepositorySettingArgs, opts?: CustomResourceOptions);
@overload
def RepositorySetting(resource_name: str,
                      args: RepositorySettingArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def RepositorySetting(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      repository_id: Optional[str] = None,
                      approval_rules: Optional[_devops.RepositorySettingApprovalRulesArgs] = None,
                      merge_checks: Optional[_devops.RepositorySettingMergeChecksArgs] = None,
                      merge_settings: Optional[_devops.RepositorySettingMergeSettingsArgs] = None)
func NewRepositorySetting(ctx *Context, name string, args RepositorySettingArgs, opts ...ResourceOption) (*RepositorySetting, error)
public RepositorySetting(string name, RepositorySettingArgs args, CustomResourceOptions? opts = null)
public RepositorySetting(String name, RepositorySettingArgs args)
public RepositorySetting(String name, RepositorySettingArgs args, CustomResourceOptions options)
type: oci:DevOps:RepositorySetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RepositorySettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RepositorySettingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RepositorySettingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RepositorySettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RepositorySettingArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var repositorySettingResource = new Oci.DevOps.RepositorySetting("repositorySettingResource", new()
{
    RepositoryId = "string",
    ApprovalRules = new Oci.DevOps.Inputs.RepositorySettingApprovalRulesArgs
    {
        Items = new[]
        {
            new Oci.DevOps.Inputs.RepositorySettingApprovalRulesItemArgs
            {
                MinApprovalsCount = 0,
                Name = "string",
                DestinationBranch = "string",
                Reviewers = new[]
                {
                    new Oci.DevOps.Inputs.RepositorySettingApprovalRulesItemReviewerArgs
                    {
                        PrincipalId = "string",
                        PrincipalName = "string",
                        PrincipalState = "string",
                        PrincipalType = "string",
                    },
                },
            },
        },
    },
    MergeChecks = new Oci.DevOps.Inputs.RepositorySettingMergeChecksArgs
    {
        LastBuildSucceeded = "string",
    },
    MergeSettings = new Oci.DevOps.Inputs.RepositorySettingMergeSettingsArgs
    {
        AllowedMergeStrategies = new[]
        {
            "string",
        },
        DefaultMergeStrategy = "string",
    },
});
Copy
example, err := DevOps.NewRepositorySetting(ctx, "repositorySettingResource", &DevOps.RepositorySettingArgs{
	RepositoryId: pulumi.String("string"),
	ApprovalRules: &devops.RepositorySettingApprovalRulesArgs{
		Items: devops.RepositorySettingApprovalRulesItemArray{
			&devops.RepositorySettingApprovalRulesItemArgs{
				MinApprovalsCount: pulumi.Int(0),
				Name:              pulumi.String("string"),
				DestinationBranch: pulumi.String("string"),
				Reviewers: devops.RepositorySettingApprovalRulesItemReviewerArray{
					&devops.RepositorySettingApprovalRulesItemReviewerArgs{
						PrincipalId:    pulumi.String("string"),
						PrincipalName:  pulumi.String("string"),
						PrincipalState: pulumi.String("string"),
						PrincipalType:  pulumi.String("string"),
					},
				},
			},
		},
	},
	MergeChecks: &devops.RepositorySettingMergeChecksArgs{
		LastBuildSucceeded: pulumi.String("string"),
	},
	MergeSettings: &devops.RepositorySettingMergeSettingsArgs{
		AllowedMergeStrategies: pulumi.StringArray{
			pulumi.String("string"),
		},
		DefaultMergeStrategy: pulumi.String("string"),
	},
})
Copy
var repositorySettingResource = new RepositorySetting("repositorySettingResource", RepositorySettingArgs.builder()
    .repositoryId("string")
    .approvalRules(RepositorySettingApprovalRulesArgs.builder()
        .items(RepositorySettingApprovalRulesItemArgs.builder()
            .minApprovalsCount(0)
            .name("string")
            .destinationBranch("string")
            .reviewers(RepositorySettingApprovalRulesItemReviewerArgs.builder()
                .principalId("string")
                .principalName("string")
                .principalState("string")
                .principalType("string")
                .build())
            .build())
        .build())
    .mergeChecks(RepositorySettingMergeChecksArgs.builder()
        .lastBuildSucceeded("string")
        .build())
    .mergeSettings(RepositorySettingMergeSettingsArgs.builder()
        .allowedMergeStrategies("string")
        .defaultMergeStrategy("string")
        .build())
    .build());
Copy
repository_setting_resource = oci.dev_ops.RepositorySetting("repositorySettingResource",
    repository_id="string",
    approval_rules={
        "items": [{
            "min_approvals_count": 0,
            "name": "string",
            "destination_branch": "string",
            "reviewers": [{
                "principal_id": "string",
                "principal_name": "string",
                "principal_state": "string",
                "principal_type": "string",
            }],
        }],
    },
    merge_checks={
        "last_build_succeeded": "string",
    },
    merge_settings={
        "allowed_merge_strategies": ["string"],
        "default_merge_strategy": "string",
    })
Copy
const repositorySettingResource = new oci.devops.RepositorySetting("repositorySettingResource", {
    repositoryId: "string",
    approvalRules: {
        items: [{
            minApprovalsCount: 0,
            name: "string",
            destinationBranch: "string",
            reviewers: [{
                principalId: "string",
                principalName: "string",
                principalState: "string",
                principalType: "string",
            }],
        }],
    },
    mergeChecks: {
        lastBuildSucceeded: "string",
    },
    mergeSettings: {
        allowedMergeStrategies: ["string"],
        defaultMergeStrategy: "string",
    },
});
Copy
type: oci:DevOps:RepositorySetting
properties:
    approvalRules:
        items:
            - destinationBranch: string
              minApprovalsCount: 0
              name: string
              reviewers:
                - principalId: string
                  principalName: string
                  principalState: string
                  principalType: string
    mergeChecks:
        lastBuildSucceeded: string
    mergeSettings:
        allowedMergeStrategies:
            - string
        defaultMergeStrategy: string
    repositoryId: string
Copy

RepositorySetting Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RepositorySetting resource accepts the following input properties:

RepositoryId
This property is required.
Changes to this property will trigger replacement.
string

Unique repository identifier.

** 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

ApprovalRules RepositorySettingApprovalRules
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
MergeChecks RepositorySettingMergeChecks
(Updatable) Criteria which must be satisfied to merge a pull request.
MergeSettings RepositorySettingMergeSettings
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
RepositoryId
This property is required.
Changes to this property will trigger replacement.
string

Unique repository identifier.

** 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

ApprovalRules RepositorySettingApprovalRulesArgs
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
MergeChecks RepositorySettingMergeChecksArgs
(Updatable) Criteria which must be satisfied to merge a pull request.
MergeSettings RepositorySettingMergeSettingsArgs
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repositoryId
This property is required.
Changes to this property will trigger replacement.
String

Unique repository identifier.

** 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

approvalRules RepositorySettingApprovalRules
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
mergeChecks RepositorySettingMergeChecks
(Updatable) Criteria which must be satisfied to merge a pull request.
mergeSettings RepositorySettingMergeSettings
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repositoryId
This property is required.
Changes to this property will trigger replacement.
string

Unique repository identifier.

** 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

approvalRules RepositorySettingApprovalRules
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
mergeChecks RepositorySettingMergeChecks
(Updatable) Criteria which must be satisfied to merge a pull request.
mergeSettings RepositorySettingMergeSettings
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repository_id
This property is required.
Changes to this property will trigger replacement.
str

Unique repository identifier.

** 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

approval_rules devops.RepositorySettingApprovalRulesArgs
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
merge_checks devops.RepositorySettingMergeChecksArgs
(Updatable) Criteria which must be satisfied to merge a pull request.
merge_settings devops.RepositorySettingMergeSettingsArgs
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repositoryId
This property is required.
Changes to this property will trigger replacement.
String

Unique repository identifier.

** 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

approvalRules Property Map
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
mergeChecks Property Map
(Updatable) Criteria which must be satisfied to merge a pull request.
mergeSettings Property Map
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.

Outputs

All input properties are implicitly available as output properties. Additionally, the RepositorySetting resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RepositorySetting Resource

Get an existing RepositorySetting resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RepositorySettingState, opts?: CustomResourceOptions): RepositorySetting
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        approval_rules: Optional[_devops.RepositorySettingApprovalRulesArgs] = None,
        merge_checks: Optional[_devops.RepositorySettingMergeChecksArgs] = None,
        merge_settings: Optional[_devops.RepositorySettingMergeSettingsArgs] = None,
        repository_id: Optional[str] = None) -> RepositorySetting
func GetRepositorySetting(ctx *Context, name string, id IDInput, state *RepositorySettingState, opts ...ResourceOption) (*RepositorySetting, error)
public static RepositorySetting Get(string name, Input<string> id, RepositorySettingState? state, CustomResourceOptions? opts = null)
public static RepositorySetting get(String name, Output<String> id, RepositorySettingState state, CustomResourceOptions options)
resources:  _:    type: oci:DevOps:RepositorySetting    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApprovalRules RepositorySettingApprovalRules
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
MergeChecks RepositorySettingMergeChecks
(Updatable) Criteria which must be satisfied to merge a pull request.
MergeSettings RepositorySettingMergeSettings
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
RepositoryId Changes to this property will trigger replacement. string

Unique repository identifier.

** 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

ApprovalRules RepositorySettingApprovalRulesArgs
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
MergeChecks RepositorySettingMergeChecksArgs
(Updatable) Criteria which must be satisfied to merge a pull request.
MergeSettings RepositorySettingMergeSettingsArgs
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
RepositoryId Changes to this property will trigger replacement. string

Unique repository identifier.

** 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

approvalRules RepositorySettingApprovalRules
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
mergeChecks RepositorySettingMergeChecks
(Updatable) Criteria which must be satisfied to merge a pull request.
mergeSettings RepositorySettingMergeSettings
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repositoryId Changes to this property will trigger replacement. String

Unique repository identifier.

** 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

approvalRules RepositorySettingApprovalRules
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
mergeChecks RepositorySettingMergeChecks
(Updatable) Criteria which must be satisfied to merge a pull request.
mergeSettings RepositorySettingMergeSettings
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repositoryId Changes to this property will trigger replacement. string

Unique repository identifier.

** 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

approval_rules devops.RepositorySettingApprovalRulesArgs
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
merge_checks devops.RepositorySettingMergeChecksArgs
(Updatable) Criteria which must be satisfied to merge a pull request.
merge_settings devops.RepositorySettingMergeSettingsArgs
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repository_id Changes to this property will trigger replacement. str

Unique repository identifier.

** 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

approvalRules Property Map
(Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
mergeChecks Property Map
(Updatable) Criteria which must be satisfied to merge a pull request.
mergeSettings Property Map
(Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
repositoryId Changes to this property will trigger replacement. String

Unique repository identifier.

** 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

Supporting Types

RepositorySettingApprovalRules
, RepositorySettingApprovalRulesArgs

Items This property is required. List<RepositorySettingApprovalRulesItem>
(Updatable) List of approval rules.
Items This property is required. []RepositorySettingApprovalRulesItem
(Updatable) List of approval rules.
items This property is required. List<RepositorySettingApprovalRulesItem>
(Updatable) List of approval rules.
items This property is required. RepositorySettingApprovalRulesItem[]
(Updatable) List of approval rules.
items This property is required. Sequence[devops.RepositorySettingApprovalRulesItem]
(Updatable) List of approval rules.
items This property is required. List<Property Map>
(Updatable) List of approval rules.

RepositorySettingApprovalRulesItem
, RepositorySettingApprovalRulesItemArgs

MinApprovalsCount This property is required. int
(Updatable) 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
(Updatable) Name which is used to uniquely identify an approval rule.
DestinationBranch string
(Updatable) 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
Reviewers List<RepositorySettingApprovalRulesItemReviewer>
(Updatable) 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.
MinApprovalsCount This property is required. int
(Updatable) 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
(Updatable) Name which is used to uniquely identify an approval rule.
DestinationBranch string
(Updatable) 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
Reviewers []RepositorySettingApprovalRulesItemReviewer
(Updatable) 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.
minApprovalsCount This property is required. Integer
(Updatable) 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
(Updatable) Name which is used to uniquely identify an approval rule.
destinationBranch String
(Updatable) 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
reviewers List<RepositorySettingApprovalRulesItemReviewer>
(Updatable) 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.
minApprovalsCount This property is required. number
(Updatable) 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
(Updatable) Name which is used to uniquely identify an approval rule.
destinationBranch string
(Updatable) 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
reviewers RepositorySettingApprovalRulesItemReviewer[]
(Updatable) 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.
min_approvals_count This property is required. int
(Updatable) 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
(Updatable) Name which is used to uniquely identify an approval rule.
destination_branch str
(Updatable) 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
reviewers Sequence[devops.RepositorySettingApprovalRulesItemReviewer]
(Updatable) 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.
minApprovalsCount This property is required. Number
(Updatable) 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
(Updatable) Name which is used to uniquely identify an approval rule.
destinationBranch String
(Updatable) 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
reviewers List<Property Map>
(Updatable) 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.

RepositorySettingApprovalRulesItemReviewer
, RepositorySettingApprovalRulesItemReviewerArgs

PrincipalId This property is required. string
(Updatable) Pull Request reviewer id
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 This property is required. string
(Updatable) Pull Request reviewer id
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 This property is required. String
(Updatable) Pull Request reviewer id
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 This property is required. string
(Updatable) Pull Request reviewer id
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 This property is required. str
(Updatable) Pull Request reviewer id
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 This property is required. String
(Updatable) Pull Request reviewer id
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

RepositorySettingMergeChecks
, RepositorySettingMergeChecksArgs

LastBuildSucceeded This property is required. string
(Updatable) Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
LastBuildSucceeded This property is required. string
(Updatable) Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
lastBuildSucceeded This property is required. String
(Updatable) Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
lastBuildSucceeded This property is required. string
(Updatable) Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
last_build_succeeded This property is required. str
(Updatable) Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged
lastBuildSucceeded This property is required. String
(Updatable) Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged

RepositorySettingMergeSettings
, RepositorySettingMergeSettingsArgs

AllowedMergeStrategies This property is required. List<string>
(Updatable) List of merge strategies which are allowed for a Project or Repository.
DefaultMergeStrategy This property is required. string
(Updatable) Default type of merge strategy associated with the a Project or Repository.
AllowedMergeStrategies This property is required. []string
(Updatable) List of merge strategies which are allowed for a Project or Repository.
DefaultMergeStrategy This property is required. string
(Updatable) Default type of merge strategy associated with the a Project or Repository.
allowedMergeStrategies This property is required. List<String>
(Updatable) List of merge strategies which are allowed for a Project or Repository.
defaultMergeStrategy This property is required. String
(Updatable) Default type of merge strategy associated with the a Project or Repository.
allowedMergeStrategies This property is required. string[]
(Updatable) List of merge strategies which are allowed for a Project or Repository.
defaultMergeStrategy This property is required. string
(Updatable) Default type of merge strategy associated with the a Project or Repository.
allowed_merge_strategies This property is required. Sequence[str]
(Updatable) List of merge strategies which are allowed for a Project or Repository.
default_merge_strategy This property is required. str
(Updatable) Default type of merge strategy associated with the a Project or Repository.
allowedMergeStrategies This property is required. List<String>
(Updatable) List of merge strategies which are allowed for a Project or Repository.
defaultMergeStrategy This property is required. String
(Updatable) Default type of merge strategy associated with the a Project or Repository.

Import

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

$ pulumi import oci:DevOps/repositorySetting:RepositorySetting test_repository_setting "repositories/{repositoryId}/repositorySettings"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.