aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2024-02-19 11:27:05 +0100
committerGitHub <noreply@github.com>2024-02-19 10:27:05 +0000
commit7e8ff709401d09467c3eee7c69cd9600d26a97a3 (patch)
treecc839314df0f30e770f3ca8297dfd79c630ea39e /services
parenta11ccc9fcd61fb25ffb1c37b87a0df4ee9efd84e (diff)
downloadgitea-7e8ff709401d09467c3eee7c69cd9600d26a97a3.tar.gz
gitea-7e8ff709401d09467c3eee7c69cd9600d26a97a3.zip
Show commit status for releases (#29149)
Fixes #29082 ![grafik](https://github.com/go-gitea/gitea/assets/1666336/bb2ccde1-ee99-459d-9e74-0fb8ea79e8b3)
Diffstat (limited to 'services')
-rw-r--r--services/actions/commit_status.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/actions/commit_status.go b/services/actions/commit_status.go
index 72a3ab7ac6..edd1fd1568 100644
--- a/services/actions/commit_status.go
+++ b/services/actions/commit_status.go
@@ -64,6 +64,9 @@ func createCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) er
return fmt.Errorf("head of pull request is missing in event payload")
}
sha = payload.PullRequest.Head.Sha
+ case webhook_module.HookEventRelease:
+ event = string(run.Event)
+ sha = run.CommitSHA
default:
return nil
}