This commit is contained in:
yp05327 2023-05-25 05:53:41 +00:00
parent a2ef8f68a9
commit c4c6da53c7

View File

@ -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()})