From cca23dd4afa1e1e303e6a6a05eaef2c9623641a6 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Mon, 12 Dec 2022 14:31:02 +0800 Subject: [PATCH] feat: rename bot user to gitea-actions --- models/user/user.go | 1 + models/user/user_system.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/user/user.go b/models/user/user.go index 456e195efb..e6c1d733d4 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -587,6 +587,7 @@ var ( "swagger.v1.json", "user", "v2", + "gitea-actions", } reservedUserPatterns = []string{"*.keys", "*.gpg", "*.rss", "*.atom"} diff --git a/models/user/user_system.go b/models/user/user_system.go index 312f908ec5..3d93094b7c 100644 --- a/models/user/user_system.go +++ b/models/user/user_system.go @@ -37,7 +37,7 @@ func NewReplaceUser(name string) *User { const ( ActionsUserID = -2 - ActionsUserName = "[bot]gitea-actions" + ActionsUserName = "gitea-actions" ) // NewActionsUser creates and returns a fake user for running the actions.