0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-19 02:40:00 +01:00
gitea/services/actions
yp05327 96d31fe0a8
Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357)
![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.
2024-04-11 15:11:32 +08:00
..
auth_test.go
auth.go
cleanup.go
clear_tasks.go
commit_status.go
init.go
job_emitter_test.go
job_emitter.go
notifier_helper.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) 2024-04-11 15:11:32 +08:00
notifier.go Fix missed doer (#30231) 2024-04-08 21:26:41 +00:00
rerun_test.go
rerun.go
schedule_tasks.go Remove scheduled action tasks if the repo is archived (#30224) 2024-04-01 13:48:14 +00:00
variables.go