aboutsummaryrefslogtreecommitdiff
path: root/internal/db/repo_branch.go
diff options
context:
space:
mode:
authorAtin <61903527+atin@users.noreply.github.com>2021-05-19 10:42:09 +0530
committerGitHub <noreply@github.com>2021-05-19 13:12:09 +0800
commitd6987ee05be8b5da279e530cfd65512cb903c72b (patch)
tree92da4f00413abb945477a2c4e9df509a9c5b161d /internal/db/repo_branch.go
parent509a392272a2ba2bde9d64bf5a55a58d0eadccc4 (diff)
chore: fix typos in code comments (#6556)
Diffstat (limited to 'internal/db/repo_branch.go')
-rw-r--r--internal/db/repo_branch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/repo_branch.go b/internal/db/repo_branch.go
index 3b7f9137..22c15b69 100644
--- a/internal/db/repo_branch.go
+++ b/internal/db/repo_branch.go
@@ -111,7 +111,7 @@ type ProtectBranch struct {
WhitelistTeamIDs string `xorm:"TEXT"`
}
-// GetProtectBranchOfRepoByName returns *ProtectBranch by branch name in given repostiory.
+// GetProtectBranchOfRepoByName returns *ProtectBranch by branch name in given repository.
func GetProtectBranchOfRepoByName(repoID int64, name string) (*ProtectBranch, error) {
protectBranch := &ProtectBranch{
RepoID: repoID,
@@ -271,7 +271,7 @@ func UpdateOrgProtectBranch(repo *Repository, protectBranch *ProtectBranch, whit
return sess.Commit()
}
-// GetProtectBranchesByRepoID returns a list of *ProtectBranch in given repostiory.
+// GetProtectBranchesByRepoID returns a list of *ProtectBranch in given repository.
func GetProtectBranchesByRepoID(repoID int64) ([]*ProtectBranch, error) {
protectBranches := make([]*ProtectBranch, 0, 2)
return protectBranches, x.Where("repo_id = ? and protected = ?", repoID, true).Asc("name").Find(&protectBranches)