mirror of
1
Fork 0
forgejo/routers/api
Giteabot a4158d1904
Avoid panic caused by broken payload when creating commit status () ()
Backport 

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 ,
`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>
2023-03-04 14:23:49 +00:00
..
actions Avoid panic caused by broken payload when creating commit status () () 2023-03-04 14:23:49 +00:00
packages Notify on container image create () 2023-02-18 13:36:38 +08:00
v1 Add loading yaml label template files () () 2023-03-01 21:57:34 -05:00