Package com.jcabi.github
Interface Pull
- All Superinterfaces:
Comparable<Pull>,JsonPatchable,JsonReadable
- All Known Implementing Classes:
Pull.Smart
GitHub pull request.
- Since:
- 0.3
- See Also:
- Suppressed Checkstyle violations:
- MultipleStringLiterals (500 lines)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classSmart pull request with extra features. -
Method Summary
Modifier and TypeMethodDescriptionbase()Get its base ref.checks()Get Pull Checks.comments()Get Pull Comments.commits()Get all commits of the pull request.Iterable<jakarta.json.JsonObject>files()List all files of the pull request.head()Get its head ref.voidMerge it.Merge it.intnumber()Get its number.repo()Repo we're in.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.jcabi.github.JsonPatchable
patchMethods inherited from interface com.jcabi.github.JsonReadable
json
-
Method Details
-
repo
Repo repo()Repo we're in.- Returns:
- Repo
-
number
int number()Get its number.- Returns:
- Pull request number
-
base
Get its base ref.- Returns:
- Base ref
- Throws:
IOException- If there is any I/O problem
-
head
Get its head ref.- Returns:
- Head ref
- Throws:
IOException- If there is any I/O problem
-
commits
Get all commits of the pull request.- Returns:
- Commits
- Throws:
IOException- If there is any I/O problem- See Also:
-
files
List all files of the pull request.- Returns:
- Files
- Throws:
IOException- If there is any I/O problem- See Also:
-
merge
Merge it.- Parameters:
msg- Commit message- Throws:
IOException- If there is any I/O problem- See Also:
-
merge
Merge it.- Parameters:
msg- Commit messagesha- Optional SHA hash for head comparison- Returns:
- State of the Merge
- Throws:
IOException- IOException If there is any I/O problem
-
comments
Get Pull Comments.- Returns:
- Comments.
- Throws:
IOException- If there is any I/O problem- See Also:
-
checks
Get Pull Checks.- Returns:
- Checks.
- Throws:
IOException- If there is any I/O problem.- Since:
- 1.6.0
- See Also:
-