public interface PullRequestHome
| Modifier and Type | Method and Description |
|---|---|
boolean |
addComment(PullRequest pullRequest,
String comment)
Add a comment to the specified
PullRequest object, and propagate the changes to the remote repository. |
boolean |
addLabel(PullRequest pullRequest,
Label label)
Attach a label to the specified pull request.
|
void |
approveOnPullRequest(PullRequest pullRequest)
Approve pull request.
|
List<PullRequest> |
findReferencedPullRequests(PullRequest pullRequest)
Find all the referenced pull requests to the given pull request.
|
CommitStatus |
getCommitStatus(PullRequest pullRequest)
Retrieve the current CI status of the latest commit associated with a given pull request.
|
List<Label> |
getLabels(PullRequest pullRequest)
Retrieve all labels associated with the provided
PullRequest object. |
boolean |
removeLabel(PullRequest pullRequest,
Label label)
Remove a label from the provided
PullRequest object. |
void |
requestChangesOnPullRequest(PullRequest pullRequest,
String body)
Request changes on pull request with comment.
|
boolean |
setLabels(PullRequest pullRequest,
List<Label> labels)
Set the labels for the
PullRequest object. |
List<PullRequest> findReferencedPullRequests(PullRequest pullRequest)
pullRequest - the PullRequest on which referenced pull requests are being searchedboolean addComment(PullRequest pullRequest, String comment)
PullRequest object, and propagate the changes to the remote repository.pullRequest - the PullRequest on which the comment will be made.comment - the new Comment.List<Label> getLabels(PullRequest pullRequest)
PullRequest object.pullRequest - the PullRequest object whose associated labels should be returned.Label objects, or an empty list if no pull request can be found.boolean setLabels(PullRequest pullRequest, List<Label> labels)
PullRequest object.pullRequest - the PullRequest object whose will be set.labels - the Label apply to the PullRequestboolean addLabel(PullRequest pullRequest, Label label)
pullRequest - the PullRequest to which the label will be applied.labelName - the name of the label to be applied.boolean removeLabel(PullRequest pullRequest, Label label)
PullRequest object.pullRequest - the PullRequest whose label will be removed.name - the Label name will be removed.CommitStatus getCommitStatus(PullRequest pullRequest)
pullRequest - the PullRequest object whose status is to be queriedvoid approveOnPullRequest(PullRequest pullRequest)
pullRequest - void requestChangesOnPullRequest(PullRequest pullRequest, String body)
pullRequest - body - Copyright © 2018 JBoss by Red Hat. All rights reserved.