0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-15 19:05:14 -05:00
forgejo/models/actions
Giteabot eeaf51ab1d
Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30409)
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>
(cherry picked from commit 69cc79173ddbf7662c4d7246b6161b9351038d16)
2024-04-15 16:36:33 +02:00
..
artifact.go
forgejo.go
forgejo_test.go
main_test.go
run.go Cancel previous runs of the same PR automatically (#29961) 2024-03-26 16:51:56 +01:00
run_job.go
run_job_list.go
run_list.go Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00
runner.go
runner_list.go
runner_token.go
runner_token_test.go
schedule.go Cancel previous runs of the same PR automatically (#29961) 2024-03-26 16:51:56 +01:00
schedule_list.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30409) 2024-04-15 16:36:33 +02:00
schedule_spec.go
schedule_spec_list.go
status.go
task.go Fix ambiguous id when fetch Actions tasks (#30382) (#30383) 2024-04-15 16:25:23 +02:00
task_list.go
task_output.go
task_step.go
tasks_version.go
utils.go
utils_test.go
variable.go Make runs-on support variable expression (#29468) 2024-03-11 23:36:59 +07:00