]> source.dussan.org Git - gitea.git/commit
Use action user as the trigger user of schedules (#30581) (#30609)
authorGiteabot <teabot@gitea.io>
Sat, 20 Apr 2024 02:46:17 +0000 (10:46 +0800)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 02:46:17 +0000 (10:46 +0800)
commit0e20ccfe323744113243d7fe3298a6664e34d054
tree91e7382000f983149202fb8e0c6d2b57117d9189
parent08822651a60cd4bfcc700fcff81a42acf9f26cd7
Use action user as the trigger user of schedules (#30581) (#30609)

Backport #30581 by @yp05327

Follow https://github.com/go-gitea/gitea/pull/30357

When user push to default branch, the schedule trigger user will be the
user.
When disable then enable action units in settings, the schedule trigger
user will be action user.
When repo is a mirror, the schedule trigger user will be action user. (
before it will return error, fixed by #30357)

As scheduled job is a cron, the trigger user should be action user from
Gitea, not a real user.

Co-authored-by: yp05327 <576951401@qq.com>
services/actions/notifier_helper.go