mirror of
https://github.com/go-gitea/gitea
synced 2024-09-27 00:37:49 +02:00
add todo
This commit is contained in:
parent
a2ef8f68a9
commit
c4c6da53c7
@ -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()})
|
||||
|
Loading…
Reference in New Issue
Block a user