java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GHPullRequestTest
The Class GHPullRequestTest.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
AbstractGitHubWireMockTest.TemplatingHelper -
Field Summary
Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the labels.voidAdds the labels concurrency issue.voidCheck non existent author.voidCheck non existent reviewer.voidCheck pull request reviewer.voidcleanUp()Clean up.voidClose pull request.voidComments objects in pull request review builder.voidCreates the draft pull request.voidCreates the pull request.voidTest enabling auto merge for pull requestvoidTest enabling auto merge for pull request with no verified email throws GraphQL exceptionvoidGet list of commits from searched PR.protected GHRepositoryGets the repository.voidGets the user test.voidMerge commit SHA.voidPull request comment.voidPull request review comments.voidPull request reviews.voidQuery pull requests qualified head.voidQuery pull requests unqualified head.voidCreate/Delete reaction for pull requests.voidTest refreshing a PR coming from the search results.voidRemoves the labels.voidSets the assignee.voidSets the base branch.voidSets the base branch non existing.voidSets the labels.voidSquash merge.voidTest pull request review requests.voidTest pull request team review requests.voidUpdate content squash merge.voidUpdate outdated branches.voidUpdate outdated branches unexpected head.Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, getWireMockOptions, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Constructor Details
-
GHPullRequestTest
public GHPullRequestTest()Create default GHPullRequestTest instance
-
-
Method Details
-
addLabels
Adds the labels.- Throws:
Exception- the exception
-
addLabelsConcurrencyIssue
Adds the labels concurrency issue.- Throws:
Exception- the exception
-
checkNonExistentAuthor
Check non existent author.- Throws:
IOException- Signals that an I/O exception has occurred.
-
checkNonExistentReviewer
Check non existent reviewer.- Throws:
IOException- Signals that an I/O exception has occurred.
-
checkPullRequestReviewer
Check pull request reviewer.- Throws:
IOException- Signals that an I/O exception has occurred.
-
cleanUp
Clean up.- Throws:
Exception- the exception
-
closePullRequest
Close pull request.- Throws:
Exception- the exception
-
commentsInPullRequestReviewBuilder
public void commentsInPullRequestReviewBuilder()Comments objects in pull request review builder. -
createDraftPullRequest
Creates the draft pull request.- Throws:
Exception- the exception
-
createPullRequest
Creates the pull request.- Throws:
Exception- the exception
-
enablePullRequestAutoMerge
Test enabling auto merge for pull request- Throws:
IOException- the Exception
-
enablePullRequestAutoMergeFailure
Test enabling auto merge for pull request with no verified email throws GraphQL exception- Throws:
IOException- the io exception
-
getListOfCommits
Get list of commits from searched PR. This would result in a wrong API URL used, resulting in a GHFileNotFoundException. For more details, please have a look at the bug description in https://github.com/hub4j/github-api/issues/1778.- Throws:
Exception- the exception
-
getUserTest
Gets the user test.- Throws:
IOException- Signals that an I/O exception has occurred.
-
mergeCommitSHA
Merge commit SHA.- Throws:
Exception- the exception
-
pullRequestComment
Pull request comment.- Throws:
Exception- the exception
-
pullRequestReviewComments
Pull request review comments.- Throws:
Exception- the exception
-
pullRequestReviews
Pull request reviews.- Throws:
Exception- the exception
-
queryPullRequestsQualifiedHead
Query pull requests qualified head.- Throws:
Exception- the exception
-
queryPullRequestsUnqualifiedHead
Query pull requests unqualified head.- Throws:
Exception- the exception
-
reactions
Create/Delete reaction for pull requests.- Throws:
Exception- the exception
-
refreshFromSearchResults
Test refreshing a PR coming from the search results.- Throws:
Exception- the exception
-
removeLabels
Removes the labels.- Throws:
Exception- the exception
-
setAssignee
Sets the assignee.- Throws:
Exception- the exception
-
setBaseBranch
Sets the base branch.- Throws:
Exception- the exception
-
setBaseBranchNonExisting
Sets the base branch non existing.- Throws:
Exception- the exception
-
setLabels
Sets the labels.- Throws:
Exception- the exception
-
squashMerge
Squash merge.- Throws:
Exception- the exception
-
testPullRequestReviewRequests
Test pull request review requests.- Throws:
Exception- the exception
-
testPullRequestTeamReviewRequests
Test pull request team review requests.- Throws:
Exception- the exception
-
updateContentSquashMerge
Update content squash merge.- Throws:
Exception- the exception
-
updateOutdatedBranches
Update outdated branches.- Throws:
Exception- the exception
-
updateOutdatedBranchesUnexpectedHead
Update outdated branches unexpected head.- Throws:
Exception- the exception
-
getRepository
Gets the repository.- Returns:
- the repository
- Throws:
IOException- Signals that an I/O exception has occurred.
-