From c4c6da53c71e206340648bd7b9a383b0a6c6f080 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Thu, 25 May 2023 05:53:41 +0000 Subject: [PATCH] add todo --- routers/private/hook_post_receive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/private/hook_post_receive.go b/routers/private/hook_post_receive.go index 8145e17b65..341c4dc745 100644 --- a/routers/private/hook_post_receive.go +++ b/routers/private/hook_post_receive.go @@ -200,7 +200,7 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) { // If our branch is the default branch of an unforked repo - there's no PR to create or refer to if !repo.IsFork && branch == baseRepo.DefaultBranch { - // update license + // TODO: check IsWiki? err := repo_module.UpdateRepoLicenses(ctx, repo, oldCommitID, newCommitID, ownerName, repoName) if err != nil { ctx.JSON(http.StatusInternalServerError, private.Response{Err: err.Error()})