We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a847d16 commit be4ec0cCopy full SHA for be4ec0c
models/update.go
@@ -23,6 +23,7 @@ const (
23
EnvRepoUsername = "GITEA_REPO_USER_NAME"
24
EnvRepoIsWiki = "GITEA_REPO_IS_WIKI"
25
EnvPusherName = "GITEA_PUSHER_NAME"
26
+ EnvPusherEmail = "GITEA_PUSHER_EMAIL"
27
EnvPusherID = "GITEA_PUSHER_ID"
28
)
29
routers/repo/http.go
@@ -226,6 +226,11 @@ func HTTP(ctx *context.Context) {
226
models.EnvPusherID + fmt.Sprintf("=%d", authUser.ID),
227
models.ProtectedBranchRepoID + fmt.Sprintf("=%d", repo.ID),
228
}
229
+
230
+ if !authUser.KeepEmailPrivate {
231
+ environ = append(environ, models.EnvPusherEmail+"="+authUser.Email)
232
+ }
233
234
if isWiki {
235
environ = append(environ, models.EnvRepoIsWiki+"=true")
236
} else {
0 commit comments