1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-23 16:14:29 +00:00

Apply suggestions from code review

Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
Lunny Xiao 2024-12-18 14:38:03 +08:00 committed by GitHub
parent 6e787dfcf8
commit 542eba6436
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {