mirror of
https://github.com/go-gitea/gitea
synced 2025-11-22 22:28:16 +00:00
Add GITEA_PR_INDEX env variable to githooks (#35938)
`GITEA_PR_ID` is already part of the env variables available in the githooks, but it contains a database ID instead of commonly used index that is part of `owner/repo!index`
This commit is contained in:
@@ -223,6 +223,7 @@ func updateWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model
|
||||
repo,
|
||||
repo.Name+".wiki",
|
||||
0,
|
||||
0,
|
||||
),
|
||||
}); err != nil {
|
||||
log.Error("Push failed: %v", err)
|
||||
@@ -341,6 +342,7 @@ func DeleteWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model
|
||||
repo,
|
||||
repo.Name+".wiki",
|
||||
0,
|
||||
0,
|
||||
),
|
||||
}); err != nil {
|
||||
if git.IsErrPushOutOfDate(err) || git.IsErrPushRejected(err) {
|
||||
|
||||
Reference in New Issue
Block a user