-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Set success
Git commit status in case of skipped checks
#300
Conversation
Good catch, thanks! Mind taking a shot at implementing it for gitlab as well? |
Mergecat's ReviewClick to read mergecats review!😼 Mergecat review of pkg/vcs/github_client/client.go@@ -181,7 +181,7 @@ func toGithubCommitStatus(state pkg.CommitState) *string {
return pkg.Pointer("failure")
case pkg.StateRunning:
return pkg.Pointer("pending")
- case pkg.StateSuccess, pkg.StateWarning, pkg.StateNone:
+ case pkg.StateSuccess, pkg.StateWarning, pkg.StateNone, pkg.StateSkip:
return pkg.Pointer("success")
}
Feedback & Suggestions:
😼 Mergecat review of pkg/vcs/gitlab_client/status.go@@ -69,7 +69,7 @@ func convertState(state pkg.CommitState) gitlab.BuildStateValue {
return gitlab.Running
case pkg.StateFailure, pkg.StateError, pkg.StatePanic:
return gitlab.Failed
- case pkg.StateSuccess, pkg.StateWarning, pkg.StateNone:
+ case pkg.StateSuccess, pkg.StateWarning, pkg.StateNone, pkg.StateSkip:
return gitlab.Success
}
Feedback & Suggestions:
😼 Mergecat review of pkg/commitState.go@@ -30,6 +30,7 @@ func (s CommitState) BareString() string {
var stateString = map[CommitState]string{
StateNone: "",
+ StateSkip: "Skipped",
StateSuccess: "Passed",
StateRunning: "Running",
StateWarning: "Warning",
@@ -62,6 +63,8 @@ func ParseCommitState(s string) (CommitState, error) {
return StateError, nil
case "panic":
return StatePanic, nil
+ case "skip", "skipped":
+ return StateSkip, nil
default:
return StateNone, fmt.Errorf("unknown commit state: %s", s)
Feedback & Suggestions:
Overall, the changes are well-integrated and improve the functionality of the code. Keep up the good work! 🚀 Dependency ReviewClick to read mergecats review!No suggestions found |
sure, done |
hello @djeebus |
"Strategy" is a strong word, mostly we release when someone pokes us. Release coming! |
v1.8.1, thanks! |
No description provided.