Package | Description |
---|---|
org.gitlab4j.api | |
org.gitlab4j.api.models |
Modifier and Type | Method and Description |
---|---|
Branch |
RepositoryApi.createBranch(Object projectIdOrPath,
String branchName,
String ref)
Creates a branch for the project.
|
Branch |
RepositoryApi.getBranch(Object projectIdOrPath,
String branchName)
Get a single project repository branch.
|
Branch |
RepositoryApi.protectBranch(Object projectIdOrPath,
String branchName)
Protects a single project repository branch.
|
Branch |
RepositoryApi.unprotectBranch(Object projectIdOrPath,
String branchName)
Unprotects a single project repository branch.
|
Modifier and Type | Method and Description |
---|---|
List<Branch> |
RepositoryApi.getBranches(Object projectIdOrPath)
Get a list of repository branches from a project, sorted by name alphabetically.
|
Pager<Branch> |
RepositoryApi.getBranches(Object projectIdOrPath,
int itemsPerPage)
Get a Pager of repository branches from a project, sorted by name alphabetically.
|
List<Branch> |
RepositoryApi.getBranches(Object projectIdOrPath,
int page,
int perPage)
Get a list of repository branches from a project, sorted by name alphabetically.
|
List<Branch> |
RepositoryApi.getBranches(Object projectIdOrPath,
String search)
Get a List of repository branches from a project, sorted by name alphabetically, filter by the search term.
|
Pager<Branch> |
RepositoryApi.getBranches(Object projectIdOrPath,
String search,
int itemsPerPage)
Get a Pager of repository branches from a project, sorted by name alphabetically, filter by the search term.
|
Stream<Branch> |
RepositoryApi.getBranchesStream(Object projectIdOrPath)
Get a Stream of repository branches from a project, sorted by name alphabetically.
|
Stream<Branch> |
RepositoryApi.getBranchesStream(Object projectIdOrPath,
String search)
Get a Stream of repository branches from a project, sorted by name alphabetically, filter by the search term.
|
Optional<Branch> |
RepositoryApi.getOptionalBranch(Object projectIdOrPath,
String branchName)
Get an Optional instance with the value for the specific repository branch.
|
Modifier and Type | Method and Description |
---|---|
Branch |
Branch.withCommit(Commit commit) |
Branch |
Branch.withDerged(Boolean merged) |
Branch |
Branch.withDevelopersCanMerge(Boolean developersCanMerge) |
Branch |
Branch.withDevelopersCanPush(Boolean developersCanPush) |
Branch |
Branch.withIsProtected(Boolean isProtected) |
Branch |
Branch.withName(String name) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Branch.isValid(Branch branch) |
Copyright © 2020. All rights reserved.