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 30f5611 commit c7d6988Copy full SHA for c7d6988
internal/commitpipeline/run.go
@@ -67,6 +67,12 @@ func (pipeline *Pipeline) Run() (*dispatcher.PipelineSuccess, error) {
67
log.Infof("%v commits filtered out", len(commits)-len(filteredCommits))
68
log.Infof("Found %v commit to check", len(filteredCommits))
69
70
+ if len(filteredCommits) == 0 && len(commits) > 0 {
71
+ return &dispatcher.PipelineSuccess{
72
+ Message: aurora.Sprintf(aurora.Green("All commits have been filtered out. Nothing to check."), len(commits)),
73
+ PipelineName: pipeline.Name(),
74
+ }, nil
75
+ }
76
if len(filteredCommits) == 0 {
77
return nil, errors.New(aurora.Red("No commits found, please check you are on a branch outside of main").String())
78
}
0 commit comments