Skip to content

Commit f5f99fc

Browse files
committed
Edit name method
1 parent abb27d3 commit f5f99fc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

routers/api/v1/org/hook.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
// ListHooks list an organziation's webhooks
1717
func ListHooks(ctx *context.APIContext) {
18-
// swagger:route GET /orgs/{orgname}/hooks organization listOrgHooks
18+
// swagger:route GET /orgs/{orgname}/hooks organization orgListHooks
1919
//
2020
// Produces:
2121
// - application/json
@@ -39,7 +39,7 @@ func ListHooks(ctx *context.APIContext) {
3939

4040
// GetHook get an organization's hook by id
4141
func GetHook(ctx *context.APIContext) {
42-
// swagger:route GET /orgs/{orgname}/hooks/{id} organization getOrgHook
42+
// swagger:route GET /orgs/{orgname}/hooks/{id} organization orgGetHook
4343
//
4444
// Produces:
4545
// - application/json
@@ -60,7 +60,7 @@ func GetHook(ctx *context.APIContext) {
6060

6161
// CreateHook create a hook for an organization
6262
func CreateHook(ctx *context.APIContext, form api.CreateHookOption) {
63-
// swagger:route POST /orgs/{orgname}/hooks/ organization createOrgHook
63+
// swagger:route POST /orgs/{orgname}/hooks/ organization orgCreateHook
6464
//
6565
// Consumes:
6666
// - application/json
@@ -81,7 +81,7 @@ func CreateHook(ctx *context.APIContext, form api.CreateHookOption) {
8181

8282
// EditHook modify a hook of a repository
8383
func EditHook(ctx *context.APIContext, form api.EditHookOption) {
84-
// swagger:route PATCH /orgs/{orgname}/hooks/{id} organization editOrgHook
84+
// swagger:route PATCH /orgs/{orgname}/hooks/{id} organization orgEditHook
8585
//
8686
// Consumes:
8787
// - application/json
@@ -101,7 +101,7 @@ func EditHook(ctx *context.APIContext, form api.EditHookOption) {
101101

102102
// DeleteHook delete a hook of an organization
103103
func DeleteHook(ctx *context.APIContext) {
104-
// swagger:route DELETE /orgs/{orgname}/hooks/{id} organization editOrgHook
104+
// swagger:route DELETE /orgs/{orgname}/hooks/{id} organization orgDeleteHook
105105
//
106106
// Produces:
107107
// - application/json

0 commit comments

Comments
 (0)