Package | Description |
---|---|
org.gitlab4j.api | |
org.gitlab4j.api.models |
Modifier and Type | Method and Description |
---|---|
ProtectedBranch |
ProtectedBranchesApi.getProtectedBranch(Object projectIdOrPath,
String branchName)
Get a single protected branch or wildcard protected branch.
|
ProtectedBranch |
ProtectedBranchesApi.protectBranch(Object projectIdOrPath,
String branchName)
Protects a single repository branch or several project repository branches
using a wildcard protected branch.
|
ProtectedBranch |
ProtectedBranchesApi.protectBranch(Object projectIdOrPath,
String branchName,
AccessLevel pushAccessLevel,
AccessLevel mergeAccessLevel)
Protects a single repository branch or several project repository branches using a wildcard protected branch.
|
ProtectedBranch |
ProtectedBranchesApi.protectBranch(Object projectIdOrPath,
String branchName,
AccessLevel pushAccessLevel,
AccessLevel mergeAccessLevel,
AccessLevel unprotectAccessLevel,
Boolean codeOwnerApprovalRequired)
Protects a single repository branch or several project repository branches using a wildcard protected branch.
|
ProtectedBranch |
ProtectedBranchesApi.protectBranch(Object projectIdOrPath,
String branchName,
AllowedTo allowedToPush,
AllowedTo allowedToMerge,
AllowedTo allowedToUnprotect,
Boolean codeOwnerApprovalRequired)
Protects a single repository branch or several project repository branches using a wildcard protected branch.
|
ProtectedBranch |
ProtectedBranchesApi.protectBranch(Object projectIdOrPath,
String branchName,
Integer allowedToPushUserId,
Integer allowedToMergeUserId,
Integer allowedToUnprotectUserId,
Boolean codeOwnerApprovalRequired)
Protects a single repository branch or several project repository branches using a wildcard protected branch.
|
Modifier and Type | Method and Description |
---|---|
Optional<ProtectedBranch> |
ProtectedBranchesApi.getOptionalProtectedBranch(Object projectIdOrPath,
String branchName)
Get an Optional instance with the value for the specific protected branch.
|
List<ProtectedBranch> |
ProtectedBranchesApi.getProtectedBranches(Object projectIdOrPath)
Gets a list of protected branches from a project.
|
Pager<ProtectedBranch> |
ProtectedBranchesApi.getProtectedBranches(Object projectIdOrPath,
int itemsPerPage)
Gets a Pager of protected branches from a project.
|
Stream<ProtectedBranch> |
ProtectedBranchesApi.getProtectedBranchesStream(Object projectIdOrPath)
Gets a Stream of protected branches from a project.
|
Modifier and Type | Method and Description |
---|---|
ProtectedBranch |
ProtectedBranch.withCodeOwnerApprovalRequired(Boolean codeOwnerApprovalRequired) |
ProtectedBranch |
ProtectedBranch.withMergeAccessLevels(List<BranchAccessLevel> mergeAccessLevels) |
ProtectedBranch |
ProtectedBranch.withName(String name) |
ProtectedBranch |
ProtectedBranch.withPushAccessLevels(List<BranchAccessLevel> pushAccessLevels) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ProtectedBranch.isValid(ProtectedBranch branch) |
Copyright © 2020. All rights reserved.