bitbucket-api-client-lib

Branchrestriction

Properties

Name | Type | Description | Notes ———— | ————- | ————- | ————- links | BranchingModelSettingsLinks | | [optional] id | Integer | The branch restriction status' id. | [optional] kind | KindEnum | The type of restriction that is being applied. | branchMatchKind | BranchMatchKindEnum | Indicates how the restriction is matched against a branch. The default is `glob`. | branchType | BranchTypeEnum | Apply the restriction to branches of this type. Active when `branch_match_kind` is `branching_model`. The branch type will be calculated using the branching model configured for the repository. | [optional] pattern | String | Apply the restriction to branches that match this pattern. Active when `branch_match_kind` is `glob`. Will be empty when `branch_match_kind` is `branching_model`. | users | List<Account> | | [optional] groups | List<Group> | | [optional] value | Integer | Value with kind-specific semantics: \"require_approvals_to_merge\" uses it to require a minimum number of approvals on a PR; \"require_default_reviewer_approvals_to_merge\" uses it to require a minimum number of approvals from default reviewers on a PR; \"require_passing_builds_to_merge\" uses it to require a minimum number of passing builds. | [optional]

Enum: KindEnum

Name | Value —- | —– REQUIRE_TASKS_TO_BE_COMPLETED | "require_tasks_to_be_completed" FORCE | "force" RESTRICT_MERGES | "restrict_merges" ENFORCE_MERGE_CHECKS | "enforce_merge_checks" REQUIRE_APPROVALS_TO_MERGE | "require_approvals_to_merge" ALLOW_AUTO_MERGE_WHEN_BUILDS_PASS | "allow_auto_merge_when_builds_pass" DELETE | "delete" REQUIRE_ALL_DEPENDENCIES_MERGED | "require_all_dependencies_merged" PUSH | "push" REQUIRE_PASSING_BUILDS_TO_MERGE | "require_passing_builds_to_merge" RESET_PULLREQUEST_APPROVALS_ON_CHANGE | "reset_pullrequest_approvals_on_change" REQUIRE_DEFAULT_REVIEWER_APPROVALS_TO_MERGE | "require_default_reviewer_approvals_to_merge"

Enum: BranchMatchKindEnum

Name | Value —- | —– BRANCHING_MODEL | "branching_model" GLOB | "glob"

Enum: BranchTypeEnum

Name | Value —- | —– FEATURE | "feature" BUGFIX | "bugfix" RELEASE | "release" HOTFIX | "hotfix" DEVELOPMENT | "development" PRODUCTION | "production"