From 542eba6436cb6a7a832314ad3809359fdc864f7c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 18 Dec 2024 14:38:03 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Zettat123 --- models/issues/issue_update.go | 2 +- services/issue/status.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/issues/issue_update.go b/models/issues/issue_update.go index e07a5a74ae..ceb4a4027e 100644 --- a/models/issues/issue_update.go +++ b/models/issues/issue_update.go @@ -144,7 +144,7 @@ func CloseIssue(ctx context.Context, issue *Issue, doer *user_model.User) (*Comm return comment, nil } -// ChangeIssueStatus changes issue status to open or closed. +// ReopenIssue changes issue status to open. func ReopenIssue(ctx context.Context, issue *Issue, doer *user_model.User) (*Comment, error) { if err := issue.LoadRepo(ctx); err != nil { return nil, err diff --git a/services/issue/status.go b/services/issue/status.go index ecbf87d533..e18b891175 100644 --- a/services/issue/status.go +++ b/services/issue/status.go @@ -13,7 +13,7 @@ import ( notify_service "code.gitea.io/gitea/services/notify" ) -// CloseIssue close and issue. +// CloseIssue close an issue. func CloseIssue(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, commitID string) error { dbCtx, committer, err := db.TxContext(ctx) if err != nil {