Fixes some typos
This commit is contained in:
Nicolas
2026-04-21 21:56:14 +02:00
committed by GitHub
parent b4f48a64fc
commit 732e23258e
12 changed files with 28 additions and 28 deletions

View File

@@ -392,7 +392,7 @@ func DeletePullReview(ctx *context.APIContext) {
func CreatePullReview(ctx *context.APIContext) {
// swagger:operation POST /repos/{owner}/{repo}/pulls/{index}/reviews repository repoCreatePullReview
// ---
// summary: Create a review to an pull request
// summary: Create a review to a pull request
// produces:
// - application/json
// parameters:
@@ -509,11 +509,11 @@ func CreatePullReview(ctx *context.APIContext) {
ctx.JSON(http.StatusOK, apiReview)
}
// SubmitPullReview submit a pending review to an pull request
// SubmitPullReview submit a pending review to a pull request
func SubmitPullReview(ctx *context.APIContext) {
// swagger:operation POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id} repository repoSubmitPullReview
// ---
// summary: Submit a pending review to an pull request
// summary: Submit a pending review to a pull request
// produces:
// - application/json
// parameters:
@@ -693,7 +693,7 @@ func prepareSingleReview(ctx *context.APIContext) (*issues_model.Review, *issues
return review, pr, false
}
// CreateReviewRequests create review requests to an pull request
// CreateReviewRequests create review requests to a pull request
func CreateReviewRequests(ctx *context.APIContext) {
// swagger:operation POST /repos/{owner}/{repo}/pulls/{index}/requested_reviewers repository repoCreatePullReviewRequests
// ---
@@ -734,7 +734,7 @@ func CreateReviewRequests(ctx *context.APIContext) {
apiReviewRequest(ctx, *opts, true)
}
// DeleteReviewRequests delete review requests to an pull request
// DeleteReviewRequests delete review requests to a pull request
func DeleteReviewRequests(ctx *context.APIContext) {
// swagger:operation DELETE /repos/{owner}/{repo}/pulls/{index}/requested_reviewers repository repoDeletePullReviewRequests
// ---

View File

@@ -13,7 +13,7 @@ import (
user_service "code.gitea.io/gitea/services/user"
)
// UpdateAvatar updates the Avatar of an User
// UpdateAvatar updates the Avatar of a User
func UpdateAvatar(ctx *context.APIContext) {
// swagger:operation POST /user/avatar user userUpdateAvatar
// ---
@@ -45,7 +45,7 @@ func UpdateAvatar(ctx *context.APIContext) {
ctx.Status(http.StatusNoContent)
}
// DeleteAvatar deletes the Avatar of an User
// DeleteAvatar deletes the Avatar of a User
func DeleteAvatar(ctx *context.APIContext) {
// swagger:operation DELETE /user/avatar user userDeleteAvatar
// ---

View File

@@ -14,7 +14,7 @@ import (
func CreateRegistrationToken(ctx *context.APIContext) {
// swagger:operation POST /user/actions/runners/registration-token user userCreateRunnerRegistrationToken
// ---
// summary: Get an user's actions runner registration token
// summary: Get a user's actions runner registration token
// produces:
// - application/json
// parameters:

View File

@@ -48,7 +48,7 @@ func ListOwnerHooks(ctx *context.APIContext, owner *user_model.User) {
ctx.JSON(http.StatusOK, apiHooks)
}
// GetOwnerHook gets an user or organization webhook. Errors are written to ctx.
// GetOwnerHook gets a user or organization webhook. Errors are written to ctx.
func GetOwnerHook(ctx *context.APIContext, ownerID, hookID int64) (*webhook.Webhook, error) {
w, err := webhook.GetWebhookByOwnerID(ctx, ownerID, hookID)
if err != nil {
@@ -114,7 +114,7 @@ func AddSystemHook(ctx *context.APIContext, form *api.CreateHookOption) {
}
}
// AddOwnerHook adds a hook to an user or organization
// AddOwnerHook adds a hook to a user or organization
func AddOwnerHook(ctx *context.APIContext, owner *user_model.User, form *api.CreateHookOption) {
hook, ok := addHook(ctx, form, owner.ID, 0)
if !ok {
@@ -294,7 +294,7 @@ func EditSystemHook(ctx *context.APIContext, form *api.EditHookOption, hookID in
ctx.JSON(http.StatusOK, h)
}
// EditOwnerHook updates a webhook of an user or organization
// EditOwnerHook updates a webhook of a user or organization
func EditOwnerHook(ctx *context.APIContext, owner *user_model.User, form *api.EditHookOption, hookID int64) {
hook, err := GetOwnerHook(ctx, owner.ID, hookID)
if err != nil {