@Immutable @Loggable(value=1) public static final class Pull.Smart extends Object implements Pull
Pull.Smart
Modifier and Type | Method and Description |
---|---|
User |
author()
Get its author.
|
PullRef |
base()
Get its base ref.
|
String |
body()
Get its body.
|
void |
body(String text)
Change its body.
|
Date |
closedAt()
When this pull request was closed.
|
PullComments |
comments()
Get Pull Comments.
|
int |
commentsCount()
Get comments count.
|
Iterable<Commit> |
commits()
Get all commits of the pull request.
|
int |
compareTo(Pull obj) |
Date |
createdAt()
When this pull request was created.
|
Iterable<javax.json.JsonObject> |
files()
List all files of the pull request.
|
PullRef |
head()
Get its head ref.
|
URL |
htmlUrl()
Get its HTML URL.
|
boolean |
isOpen()
Is it open?
|
Issue |
issue()
Get an issue where the pull request is submitted.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
void |
merge(String msg)
Merge it.
|
MergeState |
merge(String msg,
String sha)
Merge it.
|
Date |
mergedAt()
When this pull request was merged.
|
int |
number()
Get its number.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
Repo |
repo()
Repo we're in.
|
String |
state()
Get its state.
|
void |
state(String state)
Change its state.
|
String |
title()
Get its title.
|
void |
title(String text)
Change its title.
|
Date |
updatedAt()
When this pull request was updated.
|
URL |
url()
Get its URL.
|
public Smart(Pull pll)
pll
- Pull requestpublic boolean isOpen() throws IOException
IOException
- If there is any I/O problempublic String state() throws IOException
IOException
- If there is any I/O problempublic void state(String state) throws IOException
state
- State of pull requestIOException
- If there is any I/O problempublic String title() throws IOException
IOException
- If there is any I/O problempublic void title(String text) throws IOException
text
- Title of pull requestIOException
- If there is any I/O problempublic String body() throws IOException
IOException
- If there is any I/O problempublic void body(String text) throws IOException
text
- Body of pull requestIOException
- If there is any I/O problempublic URL url() throws IOException
IOException
- If there is any I/O problempublic URL htmlUrl() throws IOException
IOException
- If there is any I/O problempublic Date createdAt() throws IOException
IOException
- If there is any I/O problempublic Date updatedAt() throws IOException
IOException
- If there is any I/O problempublic Date closedAt() throws IOException
IOException
- If there is any I/O problempublic Date mergedAt() throws IOException
IOException
- If there is any I/O problempublic User author() throws IOException
IOException
- If there is any I/O problempublic Issue issue()
public int commentsCount() throws IOException
IOException
- If there is any I/O problempublic int number()
Pull
public Iterable<Commit> commits() throws IOException
Pull
commits
in interface Pull
IOException
- If there is any I/O problempublic Iterable<javax.json.JsonObject> files() throws IOException
Pull
files
in interface Pull
IOException
- If there is any I/O problempublic void merge(String msg) throws IOException
Pull
merge
in interface Pull
msg
- Commit messageIOException
- If there is any I/O problempublic MergeState merge(String msg, String sha) throws IOException
Pull
merge
in interface Pull
msg
- Commit messagesha
- Optional SHA hash for head comparisonIOException
- IOException If there is any I/O problempublic PullComments comments() throws IOException
Pull
comments
in interface Pull
IOException
- If there is any I/O problempublic javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problempublic int compareTo(Pull obj)
compareTo
in interface Comparable<Pull>
public PullRef base() throws IOException
Pull
base
in interface Pull
IOException
- If there is any I/O problempublic PullRef head() throws IOException
Pull
head
in interface Pull
IOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.