PullRequestsService class
The PullRequestsService handles communication with pull request methods of the GitHub API.
API docs: https://developer.github.com/v3/pulls/
Constructors
- PullRequestsService(GitHub github)
Properties
Methods
-
create(
RepositorySlug slug, CreatePullRequest request) → Future< PullRequest> -
Creates a Pull Request based on the given
request
. -
createComment(
RepositorySlug slug, int number, CreatePullRequestComment comment) → Future< IssueComment> - Creates a new pull request comment.
-
createReview(
RepositorySlug slug, CreatePullRequestReview review) → Future< PullRequestReview> - Creates a new pull request comment.
-
edit(
RepositorySlug slug, int number, {String? title, String? body, String? state, String? base}) → Future< PullRequest> - Edit a pull request.
-
get(
RepositorySlug slug, int number) → Future< PullRequest> - Fetches a single pull request.
-
isMerged(
RepositorySlug slug, int number) → Future< bool> -
list(
RepositorySlug slug, {int? pages, String? base, String direction = 'desc', String? head, String sort = 'created', String state = 'open'}) → Stream< PullRequest> - Fetches several pull requests.
-
listComments(
RepositorySlug slug) → Stream< PullRequestComment> - Lists all comments on all pull requests for the repository.
-
listCommentsByPullRequest(
RepositorySlug slug, int number) → Stream< PullRequestComment> - Lists all comments on the specified pull request.
-
listCommits(
RepositorySlug slug, int number) → Stream< RepositoryCommit> - Lists the commits in a pull request.
-
listFiles(
RepositorySlug slug, int number) → Stream< PullRequestFile> - Lists the files in a pull request.
-
listReviews(
RepositorySlug slug, int number) → Stream< PullRequestReview> - Lists the reviews for a pull request.
-
merge(
RepositorySlug slug, int number, {String? message}) → Future< PullRequestMerge> - Merge a pull request (Merge Button).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited