forgejo/services/actions
yp05327 0a9bbdcfef
Use action user as the trigger user of schedules (#30581)
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: Giteabot <teabot@gitea.io>
(cherry picked from commit cb6814adad4dc81a683b50826a211ce7bce731d7)

Conflicts:
	- services/actions/notifier_helper.go
	  Conflict resolved by keeping Forgejo's version of the line.
(cherry picked from commit 829c3c6838)
2024-04-21 18:17:35 +02:00
..
auth.go
auth_test.go
cleanup.go
clear_tasks.go
commit_status.go fix(actions): call automerge service on successful commit state 2024-04-15 16:51:22 +00:00
init.go
job_emitter.go
job_emitter_test.go
main_test.go
notifier.go
notifier_helper.go Use action user as the trigger user of schedules (#30581) 2024-04-21 18:17:35 +02:00
notifier_helper_test.go
rerun.go
rerun_test.go
schedule_tasks.go