]> source.dussan.org Git - gitea.git/commit
Create commit status when event is `pull_request_sync` (#23683)
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>
Fri, 24 Mar 2023 20:05:48 +0000 (04:05 +0800)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2023 20:05:48 +0000 (16:05 -0400)
commit023e61e678dc353fa6c9b0299c37f48e98a3c7af
treece803d784046a2ffbb2b8ce06fae292329800dbb
parentaa3c67362182d4c11dffa44ab355b5fea2ab78f9
Create commit status when event is `pull_request_sync` (#23683)

Fix: #23674
If the type of `hook_event` is `pull_request_sync`, also need to insert
a record of `commit_status` into DB.
Because `pull_request` event and `pull_request_sync` event have the same
payload, so the code is reusable.

Screenshot:

![image](https://user-images.githubusercontent.com/33891828/227465436-1b436807-d0b2-4a2b-8890-09d96c7f666d.png)
models/actions/run.go
services/actions/commit_status.go