0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 09:15:31 +02:00

fix: add missing group id env variable when executing hooks

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-05-04 19:30:42 -04:00
parent 6b5e17369f
commit 30960026df
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C
2 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,7 @@ func runServ(ctx context.Context, c *cli.Command) error {
repo_module.EnvRepoUsername+"="+results.OwnerName,
repo_module.EnvPusherName+"="+results.UserName,
repo_module.EnvPusherEmail+"="+results.UserEmail,
repo_module.EnvRepoGroupID+"="+strconv.FormatInt(groupID, 10),
repo_module.EnvPusherID+"="+strconv.FormatInt(results.UserID, 10),
repo_module.EnvRepoID+"="+strconv.FormatInt(results.RepoID, 10),
repo_module.EnvPRID+"="+strconv.Itoa(0),

View File

@ -64,6 +64,7 @@ func DoerPushingEnvironment(doer *user_model.User, repo *repo_model.Repository,
EnvRepoID + "=" + strconv.FormatInt(repo.ID, 10),
EnvRepoIsWiki + "=" + strconv.FormatBool(isWiki),
EnvPusherName + "=" + doer.Name,
EnvRepoGroupID + "=" + strconv.FormatInt(repo.GroupID, 10),
EnvPusherID + "=" + strconv.FormatInt(doer.ID, 10),
}
if !doer.KeepEmailPrivate {