aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/issue.go
diff options
context:
space:
mode:
authorwangjingcun <wangjingcun@aliyun.com>2024-10-22 08:41:05 +0800
committerGitHub <noreply@github.com>2024-10-22 08:41:05 +0800
commit3d6ccbac3f20c485ab95a29d280c9371e558bfac (patch)
treeac60018b74ec00bfc7ffd38467297cbd8425e5a2 /models/issues/issue.go
parentd638067d3cb0a7f69b4d899f65b9be4940bd3e41 (diff)
downloadgitea-3d6ccbac3f20c485ab95a29d280c9371e558bfac.tar.gz
gitea-3d6ccbac3f20c485ab95a29d280c9371e558bfac.zip
chore: fix some function names in comment (#32300)
fix some function names in comment
Diffstat (limited to 'models/issues/issue.go')
-rw-r--r--models/issues/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/issue.go b/models/issues/issue.go
index 40462ed09d..9ccf2859ea 100644
--- a/models/issues/issue.go
+++ b/models/issues/issue.go
@@ -872,7 +872,7 @@ func GetPinnedIssues(ctx context.Context, repoID int64, isPull bool) (IssueList,
return issues, nil
}
-// IsNewPinnedAllowed returns if a new Issue or Pull request can be pinned
+// IsNewPinAllowed returns if a new Issue or Pull request can be pinned
func IsNewPinAllowed(ctx context.Context, repoID int64, isPull bool) (bool, error) {
var maxPin int
_, err := db.GetEngine(ctx).SQL("SELECT COUNT(pin_order) FROM issue WHERE repo_id = ? AND is_pull = ? AND pin_order > 0", repoID, isPull).Get(&maxPin)