Interface PullRequestRebaseability
public interface PullRequestRebaseability
- Since:
- 5.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves a flag indicating whether the necessary preconditions to perform a rebase are met.booleancanWrite()Retrieves a flag indicating whether the requesting user has write access to the pull request's source repository, which is required in order to perform a rebase.Retrieves vetoes which prevent performing a rebase.
-
Method Details
-
canRebase
boolean canRebase()Retrieves a flag indicating whether the necessary preconditions to perform a rebase are met. If there are anyvetoes, or if the requesting userdoesn't have write access, this will always befalse.- Returns:
trueif the necessary preconditions for a rebase are met and no repository hooks vetoed the dry run; otherwise,false
-
canWrite
boolean canWrite()Retrieves a flag indicating whether the requesting user has write access to the pull request's source repository, which is required in order to perform a rebase. If the requesting user doesn't have write access to the source repository, in addition to this returningfalse, avetois also added. If this returnsfalse,canRebasewill also returnfalse.- Returns:
trueif the requesting user has write access to the pull request's source repository; otherwise,false
-
getVetoes
Retrieves vetoes which prevent performing a rebase.- Returns:
- a collection containing zero or more
vetoesfromPreRepositoryHooks used to validaterebase hook requests
-