فهرست منبع

Fix capitalisation of repo-name in news (#3203)

use 'official' repo.Name instead of incoming repoName; to enforce
correct capitalisation
SjonHortensius 8 سال پیش
والد
کامیت
17a4d8a5e5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      models/action.go

+ 1 - 1
models/action.go

@@ -489,7 +489,7 @@ func CommitRepoAction(
 		Content:      string(bs),
 		RepoID:       repo.ID,
 		RepoUserName: repoUserName,
-		RepoName:     repoName,
+		RepoName:     repo.Name,
 		RefName:      refName,
 		IsPrivate:    repo.IsPrivate,
 	}); err != nil {