Commit b8619a1
Avoid user does not exist error when detecting schedule actions when the commit author is an external user (go-gitea#30357)

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 go-gitea#24706, it only fixed normal runs, not scheduled runs.1 parent 529604a commit b8619a1
File tree
2 files changed
+6
-6
lines changed- models/actions
- services/actions
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
503 | 500 | | |
504 | 501 | | |
505 | 502 | | |
0 commit comments