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:
parent
6b5e17369f
commit
30960026df
@ -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),
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user