@Immutable public interface Repos
Modifier and Type | Interface and Description |
---|---|
static class |
Repos.RepoCreate
Settings to use when creating a new GitHub repository.
|
Modifier and Type | Method and Description |
---|---|
Repo |
create(Repos.RepoCreate settings)
Create repository.
|
Repo |
get(Coordinates coords)
Get repository by name.
|
Github |
github()
Get its owner.
|
Iterable<Repo> |
iterate(String identifier)
Iterate all public repos, starting with the one you've seen already.
|
void |
remove(Coordinates coords)
Remove repository by name.
|
Github github()
Repo create(Repos.RepoCreate settings) throws IOException
settings
- Settings to use for creating the new repositoryIOException
- If there is any I/O problemRepo get(Coordinates coords)
coords
- Repository name in "user/repo" formatvoid remove(Coordinates coords) throws IOException
Note: Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.
coords
- Repository name in "user/repo" formatIOException
- If there is any I/O problemIterable<Repo> iterate(String identifier)
identifier
- The integer ID of the last Repo that you’ve seen.Copyright © 2012–2018 jcabi.com. All rights reserved.