@ -5,11 +5,11 @@
package repo
import (
api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
)
// GetBranch get a branch of a repository
@ -5,10 +5,10 @@
// ListCollaborators list a repository's collaborators
"code.gitea.io/git"
"code.gitea.io/gitea/routers/repo"
// GetRawFile get a file by path on a repository
"code.gitea.io/gitea/routers/api/v1/utils"
// ListForks list a repository's forks
@ -5,12 +5,12 @@
// ListHooks list all hooks of a repository
@ -8,13 +8,13 @@ import (
"fmt"
"strings"
"code.gitea.io/gitea/modules/indexer"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
// ListIssues list the issues of a repository
@ -7,10 +7,10 @@ package repo
"time"
// ListIssueComments list all the comments of an issue
// ListIssueLabels list all the labels of an issue
@ -7,6 +7,7 @@ package repo
@ -7,12 +7,12 @@ package repo
func composeDeployKeysAPILink(repoPath string) string {
"strconv"
// ListLabels list all the labels of a repository
@ -7,11 +7,11 @@ package repo
// ListMilestones list all the milestones for a repository
// GetRelease get a single release of a repository
@ -5,13 +5,15 @@
"errors"
"net/http"
// GetReleaseAttachment gets a single attachment of the release
@ -16,6 +16,7 @@ import (
@ -5,9 +5,9 @@
// ListStargazers list a repository's stargazers
@ -9,6 +9,7 @@ import (
// ListSubscribers list a repo's subscribers (i.e. watchers)