diff options
author | wangjingcun <wangjingcun@aliyun.com> | 2024-10-22 08:41:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 08:41:05 +0800 |
commit | 3d6ccbac3f20c485ab95a29d280c9371e558bfac (patch) | |
tree | ac60018b74ec00bfc7ffd38467297cbd8425e5a2 /models/issues/issue.go | |
parent | d638067d3cb0a7f69b4d899f65b9be4940bd3e41 (diff) | |
download | gitea-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.go | 2 |
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) |