@Immutable public interface Pull extends Comparable<Pull>, JsonReadable, JsonPatchable
Modifier and Type | Interface and Description |
---|---|
static class |
Pull.Smart
Smart pull request with extra features.
|
Modifier and Type | Method and Description |
---|---|
PullRef |
base()
Get its base ref.
|
PullComments |
comments()
Get Pull Comments.
|
Iterable<Commit> |
commits()
Get all commits of the pull request.
|
Iterable<javax.json.JsonObject> |
files()
List all files of the pull request.
|
PullRef |
head()
Get its head ref.
|
void |
merge(String msg)
Merge it.
|
MergeState |
merge(String msg,
String sha)
Merge it.
|
int |
number()
Get its number.
|
Repo |
repo()
Repo we're in.
|
compareTo
json
patch
Repo repo()
int number()
PullRef base() throws IOException
IOException
- If there is any I/O problemPullRef head() throws IOException
IOException
- If there is any I/O problemIterable<Commit> commits() throws IOException
IOException
- If there is any I/O problemIterable<javax.json.JsonObject> files() throws IOException
IOException
- If there is any I/O problemvoid merge(String msg) throws IOException
msg
- Commit messageIOException
- If there is any I/O problemMergeState merge(String msg, String sha) throws IOException
msg
- Commit messagesha
- Optional SHA hash for head comparisonIOException
- IOException If there is any I/O problemPullComments comments() throws IOException
IOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.