File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const (
23
23
EnvRepoUsername = "GITEA_REPO_USER_NAME"
24
24
EnvRepoIsUncyclo = "GITEA_REPO_IS_WIKI"
25
25
EnvPusherName = "GITEA_PUSHER_NAME"
26
+ EnvPusherEmail = "GITEA_PUSHER_EMAIL"
26
27
EnvPusherID = "GITEA_PUSHER_ID"
27
28
)
28
29
Original file line number Diff line number Diff line change @@ -226,6 +226,11 @@ func HTTP(ctx *context.Context) {
226
226
models .EnvPusherID + fmt .Sprintf ("=%d" , authUser .ID ),
227
227
models .ProtectedBranchRepoID + fmt .Sprintf ("=%d" , repo .ID ),
228
228
}
229
+
230
+ if ! authUser .KeepEmailPrivate {
231
+ environ = append (environ , models .EnvPusherEmail + "=" + authUser .Email )
232
+ }
233
+
229
234
if isUncyclo {
230
235
environ = append (environ , models .EnvRepoIsUncyclo + "=true" )
231
236
} else {
You can’t perform that action at this time.
0 commit comments