Update models/user/user_system.go

Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Jason Song 2023-01-04 18:28:31 +08:00 committed by GitHub
parent 9b00ded1fb
commit 0f824b693c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,8 @@ func NewReplaceUser(name string) *User {
const (
ActionsUserID = -2
ActionsUserName = "gitea-actions"
ActionsFullName = "Gitea Actions"
ActionsEmail = "teabot@gitea.io"
)
// NewActionsUser creates and returns a fake user for running the actions.
@ -47,8 +49,8 @@ func NewActionsUser() *User {
Name: ActionsUserName,
LowerName: ActionsUserName,
IsActive: true,
FullName: "Gitea Actions",
Email: "teabot@gitea.io",
FullName: ActionsFullName,
Email: ActionsEmail,
KeepEmailPrivate: true,
LoginName: ActionsUserName,
Type: UserTypeIndividual,