aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/hook.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-08-30 08:24:39 +0100
committerGitHub <noreply@github.com>2020-08-30 08:24:39 +0100
commitd257485bc0026c9717fe7bf4c9953ad1b7a1a9ae (patch)
tree701493ea83b4f416c5e7ea6ffd5a9dd291d44d03 /cmd/hook.go
parent17fbbe97d7b4fca45d112f924191600eff52957b (diff)
downloadgitea-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/hook.go')
-rw-r--r--cmd/hook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/hook.go b/cmd/hook.go
index 863ed832a9..cc5289db6e 100644
--- a/cmd/hook.go
+++ b/cmd/hook.go
@@ -170,7 +170,7 @@ Gitea or set your environment appropriately.`, "")
username := os.Getenv(models.EnvRepoUsername)
reponame := os.Getenv(models.EnvRepoName)
userID, _ := strconv.ParseInt(os.Getenv(models.EnvPusherID), 10, 64)
- prID, _ := strconv.ParseInt(os.Getenv(models.ProtectedBranchPRID), 10, 64)
+ prID, _ := strconv.ParseInt(os.Getenv(models.EnvPRID), 10, 64)
isDeployKey, _ := strconv.ParseBool(os.Getenv(models.EnvIsDeployKey))
hookOptions := private.HookOptions{