We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab72f7e commit 7a687caCopy full SHA for 7a687ca
models/git/commit_status.go
@@ -194,7 +194,7 @@ func (status *CommitStatus) APIURL(ctx context.Context) string {
194
// CalcCommitStatus returns commit status state via some status, the commit statues should order by id desc
195
func CalcCommitStatus(statuses []*CommitStatus) *CommitStatus {
196
var lastStatus *CommitStatus
197
- var state api.CommitStatusState
+ state := api.CommitStatusSuccess
198
for _, status := range statuses {
199
if status.State.NoBetterThan(state) {
200
state = status.State
0 commit comments