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:
Daniel Mach
2025-11-14 05:21:05 +01:00
committed by GitHub
parent 358de23a50
commit d6dc531d4b
4 changed files with 8 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ func updateHeadByRebaseOnToBase(ctx context.Context, pr *issues_model.PullReques
pr.HeadRepo,
pr.HeadRepo.Name,
pr.ID,
pr.Index,
)).
WithDir(mergeCtx.tmpBasePath).
WithStdout(mergeCtx.outbuf).