Package com.jcabi.github
Class PullRef.Smart
java.lang.Object
com.jcabi.github.PullRef.Smart
- All Implemented Interfaces:
JsonReadable,PullRef
- Enclosing interface:
- PullRef
Smart pull request ref with extra features.
- Since:
- 0.24
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.PullRef
PullRef.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommit()Get its commit.jakarta.json.JsonObjectjson()Describe it in a JSON object.label()Get its label.ref()Get its ref.repo()Get the repository which its commit is in.sha()Get its commit SHA.user()Gets the user who owns the repository which its commit is in.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
pref- Pull request ref
-
-
Method Details
-
repo
Description copied from interface:PullRefGet the repository which its commit is in. -
ref
Description copied from interface:PullRefGet its ref.- Specified by:
refin interfacePullRef- Returns:
- Ref
- Throws:
IOException- If there is any I/O problem
-
sha
Description copied from interface:PullRefGet its commit SHA.- Specified by:
shain interfacePullRef- Returns:
- Commit SHA
- Throws:
IOException- If there is any I/O problem
-
user
Gets the user who owns the repository which its commit is in.- Returns:
- User
- Throws:
IOException- If there is any I/O problem
-
label
Get its label. Normally of the form "user:branch".- Returns:
- Label string
- Throws:
IOException- If there is any I/O problem
-
commit
Get its commit.- Returns:
- Commit
- Throws:
IOException- If there is any I/O problem
-
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-