From 14eb2571578971eeb65775ab5ebb7f04ecccbe91 Mon Sep 17 00:00:00 2001 From: Frank Thomas Date: Mon, 20 Jan 2025 20:34:36 +0100 Subject: [PATCH] Update links to the GitHub REST API docs --- .../core/forge/github/GitHubApiAlg.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/core/src/main/scala/org/scalasteward/core/forge/github/GitHubApiAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/forge/github/GitHubApiAlg.scala index 174642e4e5..b4216a32f2 100644 --- a/modules/core/src/main/scala/org/scalasteward/core/forge/github/GitHubApiAlg.scala +++ b/modules/core/src/main/scala/org/scalasteward/core/forge/github/GitHubApiAlg.scala @@ -89,11 +89,11 @@ final class GitHubApiAlg[F[_]]( } yield () } - /** https://docs.github.com/en/rest/repos/branches?apiVersion=2022-11-28#get-branch */ + /** https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#get-a-branch */ override def getBranch(repo: Repo, branch: Branch): F[BranchOut] = client.get(url.branches(repo, branch), modify) - /** https://docs.github.com/en/rest/repos?apiVersion=2022-11-28#get */ + /** https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository */ override def getRepo(repo: Repo): F[RepoOut] = client.get[RepoOut](url.repos(repo), modify).flatTap { repoOut => F.raiseWhen(repoOut.archived)(RepositoryArchived(repo)) @@ -103,7 +103,7 @@ final class GitHubApiAlg[F[_]]( override def listPullRequests(repo: Repo, head: String, base: Branch): F[List[PullRequestOut]] = client.get(url.listPullRequests(repo, head, base), modify) - /** https://docs.github.com/en/rest/pulls?apiVersion=2022-11-28#update-a-pull-request */ + /** https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request */ override def closePullRequest(repo: Repo, number: PullRequestNumber): F[PullRequestOut] = client.patchWithBody[PullRequestOut, UpdateState]( url.pull(repo, number), @@ -111,7 +111,8 @@ final class GitHubApiAlg[F[_]]( modify ) - /** https://docs.github.com/en/rest/issues?apiVersion=2022-11-28#create-an-issue-comment */ + /** https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment + */ override def commentPullRequest( repo: Repo, number: PullRequestNumber, @@ -120,8 +121,7 @@ final class GitHubApiAlg[F[_]]( client .postWithBody(url.comments(repo, number), Comment(comment), modify) - /** https://docs.github.com/en/rest/reference/issues?apiVersion=2022-11-28#add-labels-to-an-issue - */ + /** https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#add-labels-to-an-issue */ private def labelPullRequest( repo: Repo, number: PullRequestNumber,