@@ -30,21 +30,27 @@ final class GitHubApiAlg[F[_]](
3030) extends VCSApiAlg [F ] {
3131 private val url = new Url (gitHubApiHost)
3232
33+ /** https://developer.github.com/v3/repos/forks/#create-a-fork */
3334 override def createFork (repo : Repo ): F [RepoOut ] =
3435 client.post(url.forks(repo), modify(repo))
3536
37+ /** https://developer.github.com/v3/pulls/#create-a-pull-request */
3638 override def createPullRequest (repo : Repo , data : NewPullRequestData ): F [PullRequestOut ] =
3739 client.postWithBody(url.pulls(repo), data, modify(repo))
3840
41+ /** https://developer.github.com/v3/repos/branches/#get-branch */
3942 override def getBranch (repo : Repo , branch : Branch ): F [BranchOut ] =
4043 client.get(url.branches(repo, branch), modify(repo))
4144
45+ /** https://developer.github.com/v3/repos/#get */
4246 override def getRepo (repo : Repo ): F [RepoOut ] =
4347 client.get(url.repos(repo), modify(repo))
4448
49+ /** https://developer.github.com/v3/pulls/#list-pull-requests */
4550 override def listPullRequests (repo : Repo , head : String , base : Branch ): F [List [PullRequestOut ]] =
4651 client.get(url.listPullRequests(repo, head, base), modify(repo))
4752
53+ /** https://developer.github.com/v3/pulls/#update-a-pull-request */
4854 override def closePullRequest (repo : Repo , id : Int ): F [PullRequestOut ] =
4955 client.patchWithBody[PullRequestOut , UpdateState ](
5056 url.pull(repo, id),
0 commit comments