1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. RepoRuleBranch
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.platform.RepoRuleBranch

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    Resource for creating a Harness Repo Branch Rule.

    Create RepoRuleBranch Resource

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

    Constructor syntax

    new RepoRuleBranch(name: string, args: RepoRuleBranchArgs, opts?: CustomResourceOptions);
    @overload
    def RepoRuleBranch(resource_name: str,
                       args: RepoRuleBranchArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RepoRuleBranch(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       bypasses: Optional[Sequence[RepoRuleBranchBypassArgs]] = None,
                       identifier: Optional[str] = None,
                       policies: Optional[Sequence[RepoRuleBranchPolicyArgs]] = None,
                       repo_identifier: Optional[str] = None,
                       state: Optional[str] = None,
                       description: Optional[str] = None,
                       org_id: Optional[str] = None,
                       patterns: Optional[Sequence[RepoRuleBranchPatternArgs]] = None,
                       project_id: Optional[str] = None)
    func NewRepoRuleBranch(ctx *Context, name string, args RepoRuleBranchArgs, opts ...ResourceOption) (*RepoRuleBranch, error)
    public RepoRuleBranch(string name, RepoRuleBranchArgs args, CustomResourceOptions? opts = null)
    public RepoRuleBranch(String name, RepoRuleBranchArgs args)
    public RepoRuleBranch(String name, RepoRuleBranchArgs args, CustomResourceOptions options)
    
    type: harness:platform:RepoRuleBranch
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RepoRuleBranchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RepoRuleBranchArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RepoRuleBranchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepoRuleBranchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepoRuleBranchArgs
    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 repoRuleBranchResource = new Harness.Platform.RepoRuleBranch("repoRuleBranchResource", new()
    {
        Bypasses = new[]
        {
            new Harness.Platform.Inputs.RepoRuleBranchBypassArgs
            {
                RepoOwners = false,
                UserIds = new[]
                {
                    "string",
                },
            },
        },
        Identifier = "string",
        Policies = new[]
        {
            new Harness.Platform.Inputs.RepoRuleBranchPolicyArgs
            {
                AllowMergeStrategies = new[]
                {
                    "string",
                },
                BlockBranchCreation = false,
                BlockBranchDeletion = false,
                DeleteBranchOnMerge = false,
                RequireCodeOwners = false,
                RequireLatestCommitApproval = false,
                RequireMinimumApprovalCount = 0,
                RequireNoChangeRequest = false,
                RequirePullRequest = false,
                RequireResolveAllComments = false,
                RequireStatusChecks = new[]
                {
                    "string",
                },
            },
        },
        RepoIdentifier = "string",
        State = "string",
        Description = "string",
        OrgId = "string",
        Patterns = new[]
        {
            new Harness.Platform.Inputs.RepoRuleBranchPatternArgs
            {
                DefaultBranch = false,
                Excludes = new[]
                {
                    "string",
                },
                Includes = new[]
                {
                    "string",
                },
            },
        },
        ProjectId = "string",
    });
    
    example, err := platform.NewRepoRuleBranch(ctx, "repoRuleBranchResource", &platform.RepoRuleBranchArgs{
    	Bypasses: platform.RepoRuleBranchBypassArray{
    		&platform.RepoRuleBranchBypassArgs{
    			RepoOwners: pulumi.Bool(false),
    			UserIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Identifier: pulumi.String("string"),
    	Policies: platform.RepoRuleBranchPolicyArray{
    		&platform.RepoRuleBranchPolicyArgs{
    			AllowMergeStrategies: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			BlockBranchCreation:         pulumi.Bool(false),
    			BlockBranchDeletion:         pulumi.Bool(false),
    			DeleteBranchOnMerge:         pulumi.Bool(false),
    			RequireCodeOwners:           pulumi.Bool(false),
    			RequireLatestCommitApproval: pulumi.Bool(false),
    			RequireMinimumApprovalCount: pulumi.Int(0),
    			RequireNoChangeRequest:      pulumi.Bool(false),
    			RequirePullRequest:          pulumi.Bool(false),
    			RequireResolveAllComments:   pulumi.Bool(false),
    			RequireStatusChecks: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	RepoIdentifier: pulumi.String("string"),
    	State:          pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	OrgId:          pulumi.String("string"),
    	Patterns: platform.RepoRuleBranchPatternArray{
    		&platform.RepoRuleBranchPatternArgs{
    			DefaultBranch: pulumi.Bool(false),
    			Excludes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Includes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	ProjectId: pulumi.String("string"),
    })
    
    var repoRuleBranchResource = new RepoRuleBranch("repoRuleBranchResource", RepoRuleBranchArgs.builder()
        .bypasses(RepoRuleBranchBypassArgs.builder()
            .repoOwners(false)
            .userIds("string")
            .build())
        .identifier("string")
        .policies(RepoRuleBranchPolicyArgs.builder()
            .allowMergeStrategies("string")
            .blockBranchCreation(false)
            .blockBranchDeletion(false)
            .deleteBranchOnMerge(false)
            .requireCodeOwners(false)
            .requireLatestCommitApproval(false)
            .requireMinimumApprovalCount(0)
            .requireNoChangeRequest(false)
            .requirePullRequest(false)
            .requireResolveAllComments(false)
            .requireStatusChecks("string")
            .build())
        .repoIdentifier("string")
        .state("string")
        .description("string")
        .orgId("string")
        .patterns(RepoRuleBranchPatternArgs.builder()
            .defaultBranch(false)
            .excludes("string")
            .includes("string")
            .build())
        .projectId("string")
        .build());
    
    repo_rule_branch_resource = harness.platform.RepoRuleBranch("repoRuleBranchResource",
        bypasses=[{
            "repo_owners": False,
            "user_ids": ["string"],
        }],
        identifier="string",
        policies=[{
            "allow_merge_strategies": ["string"],
            "block_branch_creation": False,
            "block_branch_deletion": False,
            "delete_branch_on_merge": False,
            "require_code_owners": False,
            "require_latest_commit_approval": False,
            "require_minimum_approval_count": 0,
            "require_no_change_request": False,
            "require_pull_request": False,
            "require_resolve_all_comments": False,
            "require_status_checks": ["string"],
        }],
        repo_identifier="string",
        state="string",
        description="string",
        org_id="string",
        patterns=[{
            "default_branch": False,
            "excludes": ["string"],
            "includes": ["string"],
        }],
        project_id="string")
    
    const repoRuleBranchResource = new harness.platform.RepoRuleBranch("repoRuleBranchResource", {
        bypasses: [{
            repoOwners: false,
            userIds: ["string"],
        }],
        identifier: "string",
        policies: [{
            allowMergeStrategies: ["string"],
            blockBranchCreation: false,
            blockBranchDeletion: false,
            deleteBranchOnMerge: false,
            requireCodeOwners: false,
            requireLatestCommitApproval: false,
            requireMinimumApprovalCount: 0,
            requireNoChangeRequest: false,
            requirePullRequest: false,
            requireResolveAllComments: false,
            requireStatusChecks: ["string"],
        }],
        repoIdentifier: "string",
        state: "string",
        description: "string",
        orgId: "string",
        patterns: [{
            defaultBranch: false,
            excludes: ["string"],
            includes: ["string"],
        }],
        projectId: "string",
    });
    
    type: harness:platform:RepoRuleBranch
    properties:
        bypasses:
            - repoOwners: false
              userIds:
                - string
        description: string
        identifier: string
        orgId: string
        patterns:
            - defaultBranch: false
              excludes:
                - string
              includes:
                - string
        policies:
            - allowMergeStrategies:
                - string
              blockBranchCreation: false
              blockBranchDeletion: false
              deleteBranchOnMerge: false
              requireCodeOwners: false
              requireLatestCommitApproval: false
              requireMinimumApprovalCount: 0
              requireNoChangeRequest: false
              requirePullRequest: false
              requireResolveAllComments: false
              requireStatusChecks:
                - string
        projectId: string
        repoIdentifier: string
        state: string
    

    RepoRuleBranch 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 RepoRuleBranch resource accepts the following input properties:

    Bypasses List<RepoRuleBranchBypass>
    List of users who can bypass this rule.
    Identifier string
    Identifier of the rule.
    Policies List<RepoRuleBranchPolicy>
    Policies to be applied for this rule.
    RepoIdentifier string
    Repo identifier of the repository.
    State string
    State of the rule (active, disable, monitor).
    Description string
    Description of the rule.
    OrgId string
    Unique identifier of the organization.
    Patterns List<RepoRuleBranchPattern>
    Pattern of branch to which rule will apply.
    ProjectId string
    Unique identifier of the project.
    Bypasses []RepoRuleBranchBypassArgs
    List of users who can bypass this rule.
    Identifier string
    Identifier of the rule.
    Policies []RepoRuleBranchPolicyArgs
    Policies to be applied for this rule.
    RepoIdentifier string
    Repo identifier of the repository.
    State string
    State of the rule (active, disable, monitor).
    Description string
    Description of the rule.
    OrgId string
    Unique identifier of the organization.
    Patterns []RepoRuleBranchPatternArgs
    Pattern of branch to which rule will apply.
    ProjectId string
    Unique identifier of the project.
    bypasses List<RepoRuleBranchBypass>
    List of users who can bypass this rule.
    identifier String
    Identifier of the rule.
    policies List<RepoRuleBranchPolicy>
    Policies to be applied for this rule.
    repoIdentifier String
    Repo identifier of the repository.
    state String
    State of the rule (active, disable, monitor).
    description String
    Description of the rule.
    orgId String
    Unique identifier of the organization.
    patterns List<RepoRuleBranchPattern>
    Pattern of branch to which rule will apply.
    projectId String
    Unique identifier of the project.
    bypasses RepoRuleBranchBypass[]
    List of users who can bypass this rule.
    identifier string
    Identifier of the rule.
    policies RepoRuleBranchPolicy[]
    Policies to be applied for this rule.
    repoIdentifier string
    Repo identifier of the repository.
    state string
    State of the rule (active, disable, monitor).
    description string
    Description of the rule.
    orgId string
    Unique identifier of the organization.
    patterns RepoRuleBranchPattern[]
    Pattern of branch to which rule will apply.
    projectId string
    Unique identifier of the project.
    bypasses Sequence[RepoRuleBranchBypassArgs]
    List of users who can bypass this rule.
    identifier str
    Identifier of the rule.
    policies Sequence[RepoRuleBranchPolicyArgs]
    Policies to be applied for this rule.
    repo_identifier str
    Repo identifier of the repository.
    state str
    State of the rule (active, disable, monitor).
    description str
    Description of the rule.
    org_id str
    Unique identifier of the organization.
    patterns Sequence[RepoRuleBranchPatternArgs]
    Pattern of branch to which rule will apply.
    project_id str
    Unique identifier of the project.
    bypasses List<Property Map>
    List of users who can bypass this rule.
    identifier String
    Identifier of the rule.
    policies List<Property Map>
    Policies to be applied for this rule.
    repoIdentifier String
    Repo identifier of the repository.
    state String
    State of the rule (active, disable, monitor).
    description String
    Description of the rule.
    orgId String
    Unique identifier of the organization.
    patterns List<Property Map>
    Pattern of branch to which rule will apply.
    projectId String
    Unique identifier of the project.

    Outputs

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

    Created int
    Timestamp when the rule was created.
    CreatedBy int
    ID of the user who created the rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Updated int
    Timestamp when the rule was updated.
    UpdatedBy int
    ID of the user who updated the rule.
    Created int
    Timestamp when the rule was created.
    CreatedBy int
    ID of the user who created the rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Updated int
    Timestamp when the rule was updated.
    UpdatedBy int
    ID of the user who updated the rule.
    created Integer
    Timestamp when the rule was created.
    createdBy Integer
    ID of the user who created the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    updated Integer
    Timestamp when the rule was updated.
    updatedBy Integer
    ID of the user who updated the rule.
    created number
    Timestamp when the rule was created.
    createdBy number
    ID of the user who created the rule.
    id string
    The provider-assigned unique ID for this managed resource.
    updated number
    Timestamp when the rule was updated.
    updatedBy number
    ID of the user who updated the rule.
    created int
    Timestamp when the rule was created.
    created_by int
    ID of the user who created the rule.
    id str
    The provider-assigned unique ID for this managed resource.
    updated int
    Timestamp when the rule was updated.
    updated_by int
    ID of the user who updated the rule.
    created Number
    Timestamp when the rule was created.
    createdBy Number
    ID of the user who created the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    updated Number
    Timestamp when the rule was updated.
    updatedBy Number
    ID of the user who updated the rule.

    Look up Existing RepoRuleBranch Resource

    Get an existing RepoRuleBranch 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?: RepoRuleBranchState, opts?: CustomResourceOptions): RepoRuleBranch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bypasses: Optional[Sequence[RepoRuleBranchBypassArgs]] = None,
            created: Optional[int] = None,
            created_by: Optional[int] = None,
            description: Optional[str] = None,
            identifier: Optional[str] = None,
            org_id: Optional[str] = None,
            patterns: Optional[Sequence[RepoRuleBranchPatternArgs]] = None,
            policies: Optional[Sequence[RepoRuleBranchPolicyArgs]] = None,
            project_id: Optional[str] = None,
            repo_identifier: Optional[str] = None,
            state: Optional[str] = None,
            updated: Optional[int] = None,
            updated_by: Optional[int] = None) -> RepoRuleBranch
    func GetRepoRuleBranch(ctx *Context, name string, id IDInput, state *RepoRuleBranchState, opts ...ResourceOption) (*RepoRuleBranch, error)
    public static RepoRuleBranch Get(string name, Input<string> id, RepoRuleBranchState? state, CustomResourceOptions? opts = null)
    public static RepoRuleBranch get(String name, Output<String> id, RepoRuleBranchState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Bypasses List<RepoRuleBranchBypass>
    List of users who can bypass this rule.
    Created int
    Timestamp when the rule was created.
    CreatedBy int
    ID of the user who created the rule.
    Description string
    Description of the rule.
    Identifier string
    Identifier of the rule.
    OrgId string
    Unique identifier of the organization.
    Patterns List<RepoRuleBranchPattern>
    Pattern of branch to which rule will apply.
    Policies List<RepoRuleBranchPolicy>
    Policies to be applied for this rule.
    ProjectId string
    Unique identifier of the project.
    RepoIdentifier string
    Repo identifier of the repository.
    State string
    State of the rule (active, disable, monitor).
    Updated int
    Timestamp when the rule was updated.
    UpdatedBy int
    ID of the user who updated the rule.
    Bypasses []RepoRuleBranchBypassArgs
    List of users who can bypass this rule.
    Created int
    Timestamp when the rule was created.
    CreatedBy int
    ID of the user who created the rule.
    Description string
    Description of the rule.
    Identifier string
    Identifier of the rule.
    OrgId string
    Unique identifier of the organization.
    Patterns []RepoRuleBranchPatternArgs
    Pattern of branch to which rule will apply.
    Policies []RepoRuleBranchPolicyArgs
    Policies to be applied for this rule.
    ProjectId string
    Unique identifier of the project.
    RepoIdentifier string
    Repo identifier of the repository.
    State string
    State of the rule (active, disable, monitor).
    Updated int
    Timestamp when the rule was updated.
    UpdatedBy int
    ID of the user who updated the rule.
    bypasses List<RepoRuleBranchBypass>
    List of users who can bypass this rule.
    created Integer
    Timestamp when the rule was created.
    createdBy Integer
    ID of the user who created the rule.
    description String
    Description of the rule.
    identifier String
    Identifier of the rule.
    orgId String
    Unique identifier of the organization.
    patterns List<RepoRuleBranchPattern>
    Pattern of branch to which rule will apply.
    policies List<RepoRuleBranchPolicy>
    Policies to be applied for this rule.
    projectId String
    Unique identifier of the project.
    repoIdentifier String
    Repo identifier of the repository.
    state String
    State of the rule (active, disable, monitor).
    updated Integer
    Timestamp when the rule was updated.
    updatedBy Integer
    ID of the user who updated the rule.
    bypasses RepoRuleBranchBypass[]
    List of users who can bypass this rule.
    created number
    Timestamp when the rule was created.
    createdBy number
    ID of the user who created the rule.
    description string
    Description of the rule.
    identifier string
    Identifier of the rule.
    orgId string
    Unique identifier of the organization.
    patterns RepoRuleBranchPattern[]
    Pattern of branch to which rule will apply.
    policies RepoRuleBranchPolicy[]
    Policies to be applied for this rule.
    projectId string
    Unique identifier of the project.
    repoIdentifier string
    Repo identifier of the repository.
    state string
    State of the rule (active, disable, monitor).
    updated number
    Timestamp when the rule was updated.
    updatedBy number
    ID of the user who updated the rule.
    bypasses Sequence[RepoRuleBranchBypassArgs]
    List of users who can bypass this rule.
    created int
    Timestamp when the rule was created.
    created_by int
    ID of the user who created the rule.
    description str
    Description of the rule.
    identifier str
    Identifier of the rule.
    org_id str
    Unique identifier of the organization.
    patterns Sequence[RepoRuleBranchPatternArgs]
    Pattern of branch to which rule will apply.
    policies Sequence[RepoRuleBranchPolicyArgs]
    Policies to be applied for this rule.
    project_id str
    Unique identifier of the project.
    repo_identifier str
    Repo identifier of the repository.
    state str
    State of the rule (active, disable, monitor).
    updated int
    Timestamp when the rule was updated.
    updated_by int
    ID of the user who updated the rule.
    bypasses List<Property Map>
    List of users who can bypass this rule.
    created Number
    Timestamp when the rule was created.
    createdBy Number
    ID of the user who created the rule.
    description String
    Description of the rule.
    identifier String
    Identifier of the rule.
    orgId String
    Unique identifier of the organization.
    patterns List<Property Map>
    Pattern of branch to which rule will apply.
    policies List<Property Map>
    Policies to be applied for this rule.
    projectId String
    Unique identifier of the project.
    repoIdentifier String
    Repo identifier of the repository.
    state String
    State of the rule (active, disable, monitor).
    updated Number
    Timestamp when the rule was updated.
    updatedBy Number
    ID of the user who updated the rule.

    Supporting Types

    RepoRuleBranchBypass, RepoRuleBranchBypassArgs

    RepoOwners bool
    Allow users with repository edit permission to bypass.
    UserIds List<string>
    List of user ids with who can bypass.
    RepoOwners bool
    Allow users with repository edit permission to bypass.
    UserIds []string
    List of user ids with who can bypass.
    repoOwners Boolean
    Allow users with repository edit permission to bypass.
    userIds List<String>
    List of user ids with who can bypass.
    repoOwners boolean
    Allow users with repository edit permission to bypass.
    userIds string[]
    List of user ids with who can bypass.
    repo_owners bool
    Allow users with repository edit permission to bypass.
    user_ids Sequence[str]
    List of user ids with who can bypass.
    repoOwners Boolean
    Allow users with repository edit permission to bypass.
    userIds List<String>
    List of user ids with who can bypass.

    RepoRuleBranchPattern, RepoRuleBranchPatternArgs

    DefaultBranch bool
    Should rule apply to default branch of the repository.
    Excludes List<string>
    Globstar branch patterns on which rules will NOT be applied.
    Includes List<string>
    Globstar branch patterns on which rules will be applied.
    DefaultBranch bool
    Should rule apply to default branch of the repository.
    Excludes []string
    Globstar branch patterns on which rules will NOT be applied.
    Includes []string
    Globstar branch patterns on which rules will be applied.
    defaultBranch Boolean
    Should rule apply to default branch of the repository.
    excludes List<String>
    Globstar branch patterns on which rules will NOT be applied.
    includes List<String>
    Globstar branch patterns on which rules will be applied.
    defaultBranch boolean
    Should rule apply to default branch of the repository.
    excludes string[]
    Globstar branch patterns on which rules will NOT be applied.
    includes string[]
    Globstar branch patterns on which rules will be applied.
    default_branch bool
    Should rule apply to default branch of the repository.
    excludes Sequence[str]
    Globstar branch patterns on which rules will NOT be applied.
    includes Sequence[str]
    Globstar branch patterns on which rules will be applied.
    defaultBranch Boolean
    Should rule apply to default branch of the repository.
    excludes List<String>
    Globstar branch patterns on which rules will NOT be applied.
    includes List<String>
    Globstar branch patterns on which rules will be applied.

    RepoRuleBranchPolicy, RepoRuleBranchPolicyArgs

    AllowMergeStrategies List<string>
    Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
    BlockBranchCreation bool
    Only allow users with bypass permission to create matching branches.
    BlockBranchDeletion bool
    Only allow users with bypass permission to delete matching branches.
    DeleteBranchOnMerge bool
    Automatically delete the source branch of a pull request after it is merged.
    RequireCodeOwners bool
    Require approval on pull requests from one reviewer for each codeowner rule.
    RequireLatestCommitApproval bool
    Require re-approval when there are new changes in the pull request.
    RequireMinimumApprovalCount int
    Require approval on pull requests from a minimum number of reviewers.
    RequireNoChangeRequest bool
    Require all request for changes have been resolved.
    RequirePullRequest bool
    Do not allow any changes to matching branches without a pull request.
    RequireResolveAllComments bool
    All comments on a pull request must be resolved before it can be merged.
    RequireStatusChecks List<string>
    Selected status checks must pass before a pull request can be merged.
    AllowMergeStrategies []string
    Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
    BlockBranchCreation bool
    Only allow users with bypass permission to create matching branches.
    BlockBranchDeletion bool
    Only allow users with bypass permission to delete matching branches.
    DeleteBranchOnMerge bool
    Automatically delete the source branch of a pull request after it is merged.
    RequireCodeOwners bool
    Require approval on pull requests from one reviewer for each codeowner rule.
    RequireLatestCommitApproval bool
    Require re-approval when there are new changes in the pull request.
    RequireMinimumApprovalCount int
    Require approval on pull requests from a minimum number of reviewers.
    RequireNoChangeRequest bool
    Require all request for changes have been resolved.
    RequirePullRequest bool
    Do not allow any changes to matching branches without a pull request.
    RequireResolveAllComments bool
    All comments on a pull request must be resolved before it can be merged.
    RequireStatusChecks []string
    Selected status checks must pass before a pull request can be merged.
    allowMergeStrategies List<String>
    Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
    blockBranchCreation Boolean
    Only allow users with bypass permission to create matching branches.
    blockBranchDeletion Boolean
    Only allow users with bypass permission to delete matching branches.
    deleteBranchOnMerge Boolean
    Automatically delete the source branch of a pull request after it is merged.
    requireCodeOwners Boolean
    Require approval on pull requests from one reviewer for each codeowner rule.
    requireLatestCommitApproval Boolean
    Require re-approval when there are new changes in the pull request.
    requireMinimumApprovalCount Integer
    Require approval on pull requests from a minimum number of reviewers.
    requireNoChangeRequest Boolean
    Require all request for changes have been resolved.
    requirePullRequest Boolean
    Do not allow any changes to matching branches without a pull request.
    requireResolveAllComments Boolean
    All comments on a pull request must be resolved before it can be merged.
    requireStatusChecks List<String>
    Selected status checks must pass before a pull request can be merged.
    allowMergeStrategies string[]
    Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
    blockBranchCreation boolean
    Only allow users with bypass permission to create matching branches.
    blockBranchDeletion boolean
    Only allow users with bypass permission to delete matching branches.
    deleteBranchOnMerge boolean
    Automatically delete the source branch of a pull request after it is merged.
    requireCodeOwners boolean
    Require approval on pull requests from one reviewer for each codeowner rule.
    requireLatestCommitApproval boolean
    Require re-approval when there are new changes in the pull request.
    requireMinimumApprovalCount number
    Require approval on pull requests from a minimum number of reviewers.
    requireNoChangeRequest boolean
    Require all request for changes have been resolved.
    requirePullRequest boolean
    Do not allow any changes to matching branches without a pull request.
    requireResolveAllComments boolean
    All comments on a pull request must be resolved before it can be merged.
    requireStatusChecks string[]
    Selected status checks must pass before a pull request can be merged.
    allow_merge_strategies Sequence[str]
    Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
    block_branch_creation bool
    Only allow users with bypass permission to create matching branches.
    block_branch_deletion bool
    Only allow users with bypass permission to delete matching branches.
    delete_branch_on_merge bool
    Automatically delete the source branch of a pull request after it is merged.
    require_code_owners bool
    Require approval on pull requests from one reviewer for each codeowner rule.
    require_latest_commit_approval bool
    Require re-approval when there are new changes in the pull request.
    require_minimum_approval_count int
    Require approval on pull requests from a minimum number of reviewers.
    require_no_change_request bool
    Require all request for changes have been resolved.
    require_pull_request bool
    Do not allow any changes to matching branches without a pull request.
    require_resolve_all_comments bool
    All comments on a pull request must be resolved before it can be merged.
    require_status_checks Sequence[str]
    Selected status checks must pass before a pull request can be merged.
    allowMergeStrategies List<String>
    Limit which merge strategies are available to merge a pull request(Any of squash, rebase, merge).
    blockBranchCreation Boolean
    Only allow users with bypass permission to create matching branches.
    blockBranchDeletion Boolean
    Only allow users with bypass permission to delete matching branches.
    deleteBranchOnMerge Boolean
    Automatically delete the source branch of a pull request after it is merged.
    requireCodeOwners Boolean
    Require approval on pull requests from one reviewer for each codeowner rule.
    requireLatestCommitApproval Boolean
    Require re-approval when there are new changes in the pull request.
    requireMinimumApprovalCount Number
    Require approval on pull requests from a minimum number of reviewers.
    requireNoChangeRequest Boolean
    Require all request for changes have been resolved.
    requirePullRequest Boolean
    Do not allow any changes to matching branches without a pull request.
    requireResolveAllComments Boolean
    All comments on a pull request must be resolved before it can be merged.
    requireStatusChecks List<String>
    Selected status checks must pass before a pull request can be merged.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi