]> source.dussan.org Git - gitea.git/commit
Let branch/tag name be a valid ref to get CI status (#16400)
author6543 <6543@obermui.de>
Tue, 13 Jul 2021 07:14:14 +0000 (09:14 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jul 2021 07:14:14 +0000 (08:14 +0100)
commitb81106be3faadf7821c30b18fb1cec6c27041896
tree4e6198ec7013999bf8c85d79a00c4c14ea55c07a
parent4ce32c9e93591f2449a388201c323ca193f59c07
Let branch/tag name be a valid ref to get CI status (#16400)

* fix #16384#

* refactor: move shared helper func to utils package

* extend Tests

* use ctx.Repo.GitRepo if not nil
integrations/repo_commits_test.go
routers/api/v1/repo/git_ref.go
routers/api/v1/repo/status.go
routers/api/v1/utils/git.go [new file with mode: 0644]