Package com.jcabi.github
Class Repo.Smart
java.lang.Object
com.jcabi.github.Repo.Smart
- All Implemented Interfaces:
JsonPatchable,JsonReadable,Repo,Comparable<Repo>
- Enclosing interface:
- Repo
Smart Repo with extra features.
- Since:
- 0.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Repo
Repo.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all available assignees to which issues may be assigned.branches()Get repository's branches.Gel all collaborators.commits()Get repository's commits.intcontents()Get all contents of the repo.Get its coordinates.Get default branch.Get its description.booleanexists()Does this Repo actually exist in GitHub?forks()Get all forks of the repo.git()Get the Git API entry point.github()Get its owner.booleanDoes it have a description.hooks()Hooks.booleanIs it private?.Get all issue events for the repository.issues()Iterate issues.jakarta.json.JsonObjectjson()Describe it in a JSON object.keys()Get all deploy keys of the repo.labels()Get all labels of the repo.Get languages for the specified repository.Iterate milestones.Get Notifications API.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.pulls()Pull requests.releases()Get all releases of the repo.Lists the people that have starred the repository.stars()Get Starring API.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
rep- Repo
-
-
Method Details
-
exists
Does this Repo actually exist in GitHub?- Returns:
- True if it exists, false otherwise.
- Throws:
IOException- If there is any I/O problem.
-
hasDescription
Does it have a description.- Returns:
- TRUE if description is present
- Throws:
IOException- If there is any I/O problem
-
description
Get its description.- Returns:
- Description
- Throws:
IOException- If there is any I/O problem
-
isPrivate
Is it private?.- Returns:
- TRUE if it's private
- Throws:
IOException- If there is any I/O problem
-
github
Description copied from interface:RepoGet its owner. -
coordinates
Description copied from interface:RepoGet its coordinates.- Specified by:
coordinatesin interfaceRepo- Returns:
- Coordinates
-
issues
Description copied from interface:RepoIterate issues. -
milestones
Description copied from interface:RepoIterate milestones.- Specified by:
milestonesin interfaceRepo- Returns:
- Milestones
-
pulls
Description copied from interface:RepoPull requests. -
hooks
Description copied from interface:RepoHooks. -
issueEvents
Description copied from interface:RepoGet all issue events for the repository.- Specified by:
issueEventsin interfaceRepo- Returns:
- Issue events
- See Also:
-
labels
Description copied from interface:RepoGet all labels of the repo. -
assignees
Description copied from interface:RepoGet all available assignees to which issues may be assigned. -
releases
Description copied from interface:RepoGet all releases of the repo. -
keys
Description copied from interface:RepoGet all deploy keys of the repo. -
forks
Description copied from interface:RepoGet all forks of the repo. -
contents
Description copied from interface:RepoGet all contents of the repo. -
collaborators
Description copied from interface:RepoGel all collaborators.- Specified by:
collaboratorsin interfaceRepo- Returns:
- Collaborators
- See Also:
-
git
Description copied from interface:RepoGet the Git API entry point. -
stars
Description copied from interface:RepoGet Starring API. -
notifications
Description copied from interface:RepoGet Notifications API.- Specified by:
notificationsin interfaceRepo- Returns:
- Stars
- See Also:
-
languages
Description copied from interface:RepoGet languages for the specified repository.- Specified by:
languagesin interfaceRepo- Returns:
- Languages
- Throws:
IOException- If there is any I/O problem- See Also:
-
defaultBranch
Description copied from interface:RepoGet default branch.- Specified by:
defaultBranchin interfaceRepo- Returns:
- Default branch.
- Throws:
IOException- If there is any I/O problem.
-
stargazers
Description copied from interface:RepoLists the people that have starred the repository.- Specified by:
stargazersin interfaceRepo- Returns:
- Lists the people that have starred the repository.
-
patch
Description copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
commits
Description copied from interface:RepoGet repository's commits. -
branches
Description copied from interface:RepoGet repository's branches. -
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
-
compareTo
- Specified by:
compareToin interfaceComparable<Repo>
-