Skip to content

Commit 9523e28

Browse files
committed
Fix lint
1 parent a21643e commit 9523e28

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

modules/auth/repo_form.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (f *NewMSTeamsHookForm) Validate(ctx *macaron.Context, errs binding.Errors)
313313
return validate(errs, ctx.Data, f, ctx.Locale)
314314
}
315315

316-
// NewFeishuHookForm form for creating dingtalk hook
316+
// NewFeishuHookForm form for creating feishu hook
317317
type NewFeishuHookForm struct {
318318
PayloadURL string `binding:"Required;ValidUrl"`
319319
WebhookForm

modules/structs/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type CreateHookOptionConfig map[string]string
4141
// CreateHookOption options when create a hook
4242
type CreateHookOption struct {
4343
// required: true
44-
// enum: dingtalk,discord,gitea,gogs,msteams,slack,telegram
44+
// enum: dingtalk,discord,gitea,gogs,msteams,slack,telegram,feishu
4545
Type string `json:"type" binding:"Required"`
4646
// required: true
4747
Config CreateHookOptionConfig `json:"config" binding:"Required"`

routers/repo/webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ func SlackHooksNewPost(ctx *context.Context, form auth.NewSlackHookForm) {
485485
ctx.Redirect(orCtx.Link)
486486
}
487487

488-
// FeishuHooksNewPost response for creating slack hook
488+
// FeishuHooksNewPost response for creating feishu hook
489489
func FeishuHooksNewPost(ctx *context.Context, form auth.NewFeishuHookForm) {
490490
ctx.Data["Title"] = ctx.Tr("repo.settings")
491491
ctx.Data["PageIsSettingsHooks"] = true
@@ -859,7 +859,7 @@ func MSTeamsHooksEditPost(ctx *context.Context, form auth.NewMSTeamsHookForm) {
859859
ctx.Redirect(fmt.Sprintf("%s/%d", orCtx.Link, w.ID))
860860
}
861861

862-
// FeishuHooksEditPost response for editing MS Teams hook
862+
// FeishuHooksEditPost response for editing feishu hook
863863
func FeishuHooksEditPost(ctx *context.Context, form auth.NewFeishuHookForm) {
864864
ctx.Data["Title"] = ctx.Tr("repo.settings")
865865
ctx.Data["PageIsSettingsHooks"] = true

templates/swagger/v1_json.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9752,7 +9752,8 @@
97529752
"gogs",
97539753
"msteams",
97549754
"slack",
9755-
"telegram"
9755+
"telegram",
9756+
"feishu"
97569757
],
97579758
"x-go-name": "Type"
97589759
}

0 commit comments

Comments
 (0)