Fix wrong hint when status checking is running on pull request view#9886
Conversation
There was a problem hiding this comment.
Or NoBetterThan ? :)
NoBetterThan sounds good too. My problem was that the old name implied < but the function acts like <=.
There was a problem hiding this comment.
Hmm... It looks like there is a genuine total order here. An alternative might be:
type CommitStatus int
const (
CommitStatusPending CommitStatus = 0
...
)
func (c CommitStatus) String() {
switch c {
case CommitStatusPending:
return "pending"
...
}
}Then just use normal operators for the state.
There was a problem hiding this comment.
@zeripath I will left this other PRs to keep this PR clear.
0f4fb39 to
4312976
Compare
Codecov Report
@@ Coverage Diff @@
## master #9886 +/- ##
=========================================
Coverage ? 42.28%
=========================================
Files ? 608
Lines ? 79392
Branches ? 0
=========================================
Hits ? 33570
Misses ? 41680
Partials ? 4142
Continue to review full report at Codecov.
|
4312976 to
3320ba5
Compare
…o-gitea#9886) * Fix wrong hint when status checking is running on pull request view * fix lint * fix test * fix test * fix wrong tmpl * fix import * rename function name
|
lable: backport/done |
When all required status check were running, it will display some required status check failed.
This PR will fix that. There are more states to check about the status check.
Fix #9394