@@ -89,11 +89,11 @@ final class GitHubApiAlg[F[_]](
89
89
} yield ()
90
90
}
91
91
92
- /** https://docs.github.com/en/rest/repos /branches?apiVersion=2022-11-28#get-branch */
92
+ /** https://docs.github.com/en/rest/branches /branches?apiVersion=2022-11-28#get-a -branch */
93
93
override def getBranch (repo : Repo , branch : Branch ): F [BranchOut ] =
94
94
client.get(url.branches(repo, branch), modify)
95
95
96
- /** https://docs.github.com/en/rest/repos?apiVersion=2022-11-28#get */
96
+ /** https://docs.github.com/en/rest/repos/repos ?apiVersion=2022-11-28#get-a-repository */
97
97
override def getRepo (repo : Repo ): F [RepoOut ] =
98
98
client.get[RepoOut ](url.repos(repo), modify).flatTap { repoOut =>
99
99
F .raiseWhen(repoOut.archived)(RepositoryArchived (repo))
@@ -103,15 +103,16 @@ final class GitHubApiAlg[F[_]](
103
103
override def listPullRequests (repo : Repo , head : String , base : Branch ): F [List [PullRequestOut ]] =
104
104
client.get(url.listPullRequests(repo, head, base), modify)
105
105
106
- /** https://docs.github.com/en/rest/pulls?apiVersion=2022-11-28#update-a-pull-request */
106
+ /** https://docs.github.com/en/rest/pulls/pulls ?apiVersion=2022-11-28#update-a-pull-request */
107
107
override def closePullRequest (repo : Repo , number : PullRequestNumber ): F [PullRequestOut ] =
108
108
client.patchWithBody[PullRequestOut , UpdateState ](
109
109
url.pull(repo, number),
110
110
UpdateState (PullRequestState .Closed ),
111
111
modify
112
112
)
113
113
114
- /** https://docs.github.com/en/rest/issues?apiVersion=2022-11-28#create-an-issue-comment */
114
+ /** https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment
115
+ */
115
116
override def commentPullRequest (
116
117
repo : Repo ,
117
118
number : PullRequestNumber ,
@@ -120,8 +121,7 @@ final class GitHubApiAlg[F[_]](
120
121
client
121
122
.postWithBody(url.comments(repo, number), Comment (comment), modify)
122
123
123
- /** https://docs.github.com/en/rest/reference/issues?apiVersion=2022-11-28#add-labels-to-an-issue
124
- */
124
+ /** https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue */
125
125
private def labelPullRequest (
126
126
repo : Repo ,
127
127
number : PullRequestNumber ,
0 commit comments