gitea/services/actions
Giteabot 245e8d10c2
Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30408)
Backport #30357 by @yp05327


![image](https://github.com/go-gitea/gitea/assets/18380374/ddf6ee84-2242-49b9-b066-bd8429ba4d76)

When repo is a mirror, and commit author is an external user, then
`GetUserByEmail` will return error.

reproduce/test:
- mirror Gitea to your instance
- disable action and enable it again, this will trigger
`DetectAndHandleSchedules`

ps: also follow #24706, it only fixed normal runs, not scheduled runs.

Co-authored-by: yp05327 <576951401@qq.com>
2024-04-11 15:39:27 +08:00
..
cleanup.go
clear_tasks.go
commit_status.go Fix create commit status (#30225) (#30340) 2024-04-08 23:30:55 +00:00
init.go
job_emitter.go
job_emitter_test.go The job should always run when `if` is `always()` (#29464) (#29469) 2024-02-28 12:22:31 +01:00
notifier.go
notifier_helper.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30408) 2024-04-11 15:39:27 +08:00
rerun.go Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
rerun_test.go Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
schedule_tasks.go