mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-16 10:19:19 +08:00
a4158d1904
Backport #23216 When creating commit status for Actons jobs, a payload with nil `HeadCommit` will cause panic. Reported at: https://gitea.com/gitea/act_runner/issues/28#issuecomment-732166 Although the `HeadCommit` probably can not be nil after #23215, `CreateCommitStatus` should protect itself, to avoid being broken in the future. In addition, it's enough to print error log instead of returning err when `CreateCommitStatus` failed. Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: delvh <dev.lh@web.de> |
||
---|---|---|
.. | ||
clear_tasks.go | ||
commit_status.go | ||
init.go | ||
job_emitter_test.go | ||
job_emitter.go | ||
notifier_helper.go | ||
notifier.go |