diff options
author | zeripath <art27@cantab.net> | 2020-08-30 08:24:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 08:24:39 +0100 |
commit | d257485bc0026c9717fe7bf4c9953ad1b7a1a9ae (patch) | |
tree | 701493ea83b4f416c5e7ea6ffd5a9dd291d44d03 /cmd/serv.go | |
parent | 17fbbe97d7b4fca45d112f924191600eff52957b (diff) | |
download | gitea-d257485bc0026c9717fe7bf4c9953ad1b7a1a9ae.tar.gz gitea-d257485bc0026c9717fe7bf4c9953ad1b7a1a9ae.zip |
Rename models.ProtectedBranchRepoID to models.EnvRepoID and ensure EnvPusherEmail is set (#12646)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'cmd/serv.go')
-rw-r--r-- | cmd/serv.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/serv.go b/cmd/serv.go index cccf3de074..f260685400 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -206,9 +206,10 @@ func runServ(c *cli.Context) error { os.Setenv(models.EnvRepoName, results.RepoName) os.Setenv(models.EnvRepoUsername, results.OwnerName) os.Setenv(models.EnvPusherName, results.UserName) + os.Setenv(models.EnvPusherEmail, results.UserEmail) os.Setenv(models.EnvPusherID, strconv.FormatInt(results.UserID, 10)) - os.Setenv(models.ProtectedBranchRepoID, strconv.FormatInt(results.RepoID, 10)) - os.Setenv(models.ProtectedBranchPRID, fmt.Sprintf("%d", 0)) + os.Setenv(models.EnvRepoID, strconv.FormatInt(results.RepoID, 10)) + os.Setenv(models.EnvPRID, fmt.Sprintf("%d", 0)) os.Setenv(models.EnvIsDeployKey, fmt.Sprintf("%t", results.IsDeployKey)) os.Setenv(models.EnvKeyID, fmt.Sprintf("%d", results.KeyID)) |