aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/webhook.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-02 22:38:30 +0100
committerGitHub <noreply@github.com>2020-12-02 16:38:30 -0500
commit7ac8a770e1086a50d1fc0a194fe0d7060036fb30 (patch)
treef3c9e4e92bd158c8ef506ea46163c2dd95a57cfa /routers/repo/webhook.go
parent2b4a08e9621e052845062ecd71ebfd37453c0383 (diff)
downloadgitea-7ac8a770e1086a50d1fc0a194fe0d7060036fb30.tar.gz
gitea-7ac8a770e1086a50d1fc0a194fe0d7060036fb30.zip
Move Repo APIFormat to convert package (#13787)
* Move Repo APIFormat to convert package * tweek
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r--routers/repo/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go
index 13b95c8076..f9f9e94a2b 100644
--- a/routers/repo/webhook.go
+++ b/routers/repo/webhook.go
@@ -1073,7 +1073,7 @@ func TestWebhook(ctx *context.Context) {
},
},
},
- Repo: ctx.Repo.Repository.APIFormat(models.AccessModeNone),
+ Repo: convert.ToRepo(ctx.Repo.Repository, models.AccessModeNone),
Pusher: apiUser,
Sender: apiUser,
}