chore(typo): fix grammar in comments, API docs and error messages (#38370)

This commit is contained in:
Milwad Khosravi
2026-07-09 01:22:06 +03:30
committed by GitHub
parent 49ef93940a
commit 545ed92354
13 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -36,11 +36,11 @@ import (
"gitea.com/gitea/runner/act/model"
)
// ListActionsSecrets list an repo's actions secrets
// ListActionsSecrets list a repo's actions secrets
func (Action) ListActionsSecrets(ctx *context.APIContext) {
// swagger:operation GET /repos/{owner}/{repo}/actions/secrets repository repoListActionsSecrets
// ---
// summary: List an repo's actions secrets
// summary: List a repo's actions secrets
// produces:
// - application/json
// parameters:
+2 -2
View File
@@ -13,7 +13,7 @@ import (
repo_service "gitea.dev/services/repository"
)
// UpdateVatar updates the Avatar of an Repo
// UpdateAvatar updates the Avatar of a Repo
func UpdateAvatar(ctx *context.APIContext) {
// swagger:operation POST /repos/{owner}/{repo}/avatar repository repoUpdateAvatar
// ---
@@ -56,7 +56,7 @@ func UpdateAvatar(ctx *context.APIContext) {
ctx.Status(http.StatusNoContent)
}
// UpdateAvatar deletes the Avatar of an Repo
// DeleteAvatar deletes the Avatar of a Repo
func DeleteAvatar(ctx *context.APIContext) {
// swagger:operation DELETE /repos/{owner}/{repo}/avatar repository repoDeleteAvatar
// ---
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"gitea.dev/services/context"
)
// GetGitAllRefs get ref or an list all the refs of a repository
// GetGitAllRefs get ref or a list of all the refs of a repository
func GetGitAllRefs(ctx *context.APIContext) {
// swagger:operation GET /repos/{owner}/{repo}/git/refs repository repoListAllGitRefs
// ---