mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-08 14:12:45 +00:00
Merge pull request #657 from bradrydzewski/master
CC should return not fount 404
This commit is contained in:
commit
b44ca14fb7
@ -115,7 +115,7 @@ func GetCC(c web.C, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
repo, err := datastore.GetRepoName(ctx, host, owner, name)
|
repo, err := datastore.GetRepoName(ctx, host, owner, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.Write(defaultBadge.none)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
commits, err := datastore.GetCommitList(ctx, repo)
|
commits, err := datastore.GetCommitList(ctx, repo)
|
||||||
|
Loading…
Reference in New Issue
Block a user