mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-30 04:22:54 +09:00
Allow gitea bot as trigger user
This commit is contained in:
@ -49,7 +49,11 @@ func (runs RunList) LoadTriggerUser() error {
|
||||
return err
|
||||
}
|
||||
for _, run := range runs {
|
||||
run.TriggerUser = users[run.TriggerUserID]
|
||||
if run.TriggerUserID == user_model.BotUserID {
|
||||
run.TriggerUser = user_model.NewBotUser()
|
||||
} else {
|
||||
run.TriggerUser = users[run.TriggerUserID]
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user