1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 14:14:25 +00:00
gitea/services/actions
Giteabot 60f049318d
Use action user as the trigger user of schedules (#30581) (#30610)
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>
2024-04-20 10:45:53 +08:00
..
auth_test.go Add ac claim for old docker/build-push-action@v3 / current buildx gha cache (#29584) 2024-03-05 17:34:42 +00:00
auth.go Add ac claim for old docker/build-push-action@v3 / current buildx gha cache (#29584) 2024-03-05 17:34:42 +00:00
cleanup.go Expire artifacts before deleting them physically (#29241) 2024-02-18 22:25:14 +08:00
clear_tasks.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
commit_status.go Fix create commit status (#30225) 2024-04-08 13:15:23 +00:00
init.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
job_emitter_test.go The job should always run when if is always() (#29464) 2024-02-28 11:54:44 +01:00
job_emitter.go The job should always run when if is always() (#29464) 2024-02-28 11:54:44 +01:00
notifier_helper.go Use action user as the trigger user of schedules (#30581) (#30610) 2024-04-20 10:45:53 +08:00
notifier.go Fix missed doer (#30231) (#30343) 2024-04-09 02:42:45 +03:00
rerun_test.go Fix bugs in rerunning jobs (#29955) 2024-03-22 03:19:17 +00:00
rerun.go Fix bugs in rerunning jobs (#29955) 2024-03-22 03:19:17 +00:00
schedule_tasks.go Remove scheduled action tasks if the repo is archived (#30224) (#30230) 2024-04-01 19:43:09 +02:00