Package org.luwrain.io.api.github
Class GitHubClient
java.lang.Object
org.luwrain.io.api.github.GitHubClient
- All Implemented Interfaces:
GitHubService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseIssue(String repoFullName, int issueNumber) Закрыть обсуждение (Issue).booleanconnect()Проверяет соединение и валидность токена.voidcreateIssue(String repoFullName, String title, String text) Создать новое обсуждение (Issue).getComments(String repoFullName, int issueNumber) Получить комментарии внутри конкретного обсуждения.Получить список обсуждений (Issues) в репозитории.Возвращает список репозиториев текущего пользователя.voidПодписаться на репозиторий (поставить Star).voidОтписаться от репозитория (убрать Star).voidpostComment(String repoFullName, int issueNumber, String text) Написать комментарий (ответ) в обсуждение.Ищет репозитории по запросу.
-
Constructor Details
-
GitHubClient
-
-
Method Details
-
connect
public boolean connect()Description copied from interface:GitHubServiceПроверяет соединение и валидность токена.- Specified by:
connectin interfaceGitHubService- Returns:
- true, если вход успешен.
-
getMyRepos
Description copied from interface:GitHubServiceВозвращает список репозиториев текущего пользователя.- Specified by:
getMyReposin interfaceGitHubService
-
search
Description copied from interface:GitHubServiceИщет репозитории по запросу.- Specified by:
searchin interfaceGitHubService- Parameters:
query- поисковый запрос (например, "java tetris")
-
joinRepo
Description copied from interface:GitHubServiceПодписаться на репозиторий (поставить Star).- Specified by:
joinRepoin interfaceGitHubService- Parameters:
repoFullName- имя в формате "owner/repo"
-
leaveRepo
Description copied from interface:GitHubServiceОтписаться от репозитория (убрать Star).- Specified by:
leaveRepoin interfaceGitHubService
-
getIssues
Description copied from interface:GitHubServiceПолучить список обсуждений (Issues) в репозитории.- Specified by:
getIssuesin interfaceGitHubService
-
createIssue
Description copied from interface:GitHubServiceСоздать новое обсуждение (Issue).- Specified by:
createIssuein interfaceGitHubService
-
closeIssue
Description copied from interface:GitHubServiceЗакрыть обсуждение (Issue).- Specified by:
closeIssuein interfaceGitHubService
-
getComments
Description copied from interface:GitHubServiceПолучить комментарии внутри конкретного обсуждения.- Specified by:
getCommentsin interfaceGitHubService
-
postComment
Description copied from interface:GitHubServiceНаписать комментарий (ответ) в обсуждение.- Specified by:
postCommentin interfaceGitHubService
-