mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Add deprecated not to Github#getRepositoryById
This commit is contained in:
@@ -549,6 +549,23 @@ public class GitHub {
|
||||
return GHRepository.read(this, tokens[0], tokens[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the repository object from its ID
|
||||
*
|
||||
* @param id
|
||||
* the id
|
||||
* @return the repository by id
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*
|
||||
* @deprecated Do not use this method. It was added due to misunderstanding of the type of parameter.
|
||||
* Use the alternative getRepositoryById method with long type parameter instead
|
||||
*/
|
||||
@Deprecated
|
||||
public GHRepository getRepositoryById(String id) throws IOException {
|
||||
return createRequest().withUrlPath("/repositories/" + id).fetch(GHRepository.class).wrap(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the repository object from its ID
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user