From 2c3a1b011c86ea0bae811b611f07fd89b80fe3be Mon Sep 17 00:00:00 2001 From: KOUNOIKE Date: Sun, 7 Oct 2018 12:27:00 +0900 Subject: [PATCH] fix comments --- .../controller/api/ApiRepositoryBranchControllerBase.scala | 2 -- .../controller/api/ApiRepositoryCommitControllerBase.scala | 6 ++++-- .../controller/api/ApiRepositoryStatusControllerBase.scala | 1 + .../core/controller/api/ApiUserControllerBase.scala | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/scala/gitbucket/core/controller/api/ApiRepositoryBranchControllerBase.scala b/src/main/scala/gitbucket/core/controller/api/ApiRepositoryBranchControllerBase.scala index 72088fcfe..fa2d59adb 100644 --- a/src/main/scala/gitbucket/core/controller/api/ApiRepositoryBranchControllerBase.scala +++ b/src/main/scala/gitbucket/core/controller/api/ApiRepositoryBranchControllerBase.scala @@ -61,13 +61,11 @@ trait ApiRepositoryBranchControllerBase extends ControllerBase { /* * iii. Get branch protection * https://developer.github.com/v3/repos/branches/#get-branch-protection - * Not Implemented. */ /* * iv. Update branch protection * https://developer.github.com/v3/repos/branches/#update-branch-protection - * Not implemented */ /* diff --git a/src/main/scala/gitbucket/core/controller/api/ApiRepositoryCommitControllerBase.scala b/src/main/scala/gitbucket/core/controller/api/ApiRepositoryCommitControllerBase.scala index ba22eafc6..5455f9c31 100644 --- a/src/main/scala/gitbucket/core/controller/api/ApiRepositoryCommitControllerBase.scala +++ b/src/main/scala/gitbucket/core/controller/api/ApiRepositoryCommitControllerBase.scala @@ -15,12 +15,11 @@ trait ApiRepositoryCommitControllerBase extends ControllerBase { self: AccountService with CommitsService with ReferrerAuthenticator => /* * i. List commits on a repository + * https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository */ /* * ii. Get a single commit - */ - /** * https://developer.github.com/v3/repos/commits/#get-a-single-commit */ get("/api/v3/repos/:owner/:repository/commits/:sha")(referrersOnly { repository => @@ -71,13 +70,16 @@ trait ApiRepositoryCommitControllerBase extends ControllerBase { /* * iii. Get the SHA-1 of a commit reference + * https://developer.github.com/v3/repos/commits/#get-the-sha-1-of-a-commit-reference */ /* * iv. Compare two commits + * https://developer.github.com/v3/repos/commits/#compare-two-commits */ /* * v. Commit signature verification + * https://developer.github.com/v3/repos/commits/#commit-signature-verification */ } diff --git a/src/main/scala/gitbucket/core/controller/api/ApiRepositoryStatusControllerBase.scala b/src/main/scala/gitbucket/core/controller/api/ApiRepositoryStatusControllerBase.scala index b13b89dd2..787acdabd 100644 --- a/src/main/scala/gitbucket/core/controller/api/ApiRepositoryStatusControllerBase.scala +++ b/src/main/scala/gitbucket/core/controller/api/ApiRepositoryStatusControllerBase.scala @@ -8,6 +8,7 @@ import gitbucket.core.util.{JGitUtil, ReferrerAuthenticator, WritableUsersAuthen trait ApiRepositoryStatusControllerBase extends ControllerBase { self: AccountService with CommitStatusService with ReferrerAuthenticator with WritableUsersAuthenticator => + /* * i. Create a status * https://developer.github.com/v3/repos/statuses/#create-a-status diff --git a/src/main/scala/gitbucket/core/controller/api/ApiUserControllerBase.scala b/src/main/scala/gitbucket/core/controller/api/ApiUserControllerBase.scala index 851141d1b..7c596fde7 100644 --- a/src/main/scala/gitbucket/core/controller/api/ApiUserControllerBase.scala +++ b/src/main/scala/gitbucket/core/controller/api/ApiUserControllerBase.scala @@ -42,4 +42,5 @@ trait ApiUserControllerBase extends ControllerBase { * v. Get all users * https://developer.github.com/v3/users/#get-all-users */ + }