1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-18 00:49:09 -04:00

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