Skip to content

Commit a0f82a4

Browse files
committed
fix: print success for linting without errors
1 parent e99d7c3 commit a0f82a4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cmd/gitlab_lint.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ func Lint(cCtx *cli.Context) error {
6767
}
6868

6969
// To scm-engine specific linting last
70-
return cfg.Lint(ctx, &gitlab.Context{})
70+
if err := cfg.Lint(ctx, &gitlab.Context{}); err != nil {
71+
return err
72+
}
73+
74+
slogctx.Info(ctx, "No errors found")
75+
76+
return nil
7177
}
7278

7379
type EmbedLoader struct{}

pkg/config/action.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type (
2323

2424
// (Optional) Only one action per group (in order) will be executed per evaluation cycle.
2525
// Use this to 'stop' other actions from running with the same group name
26-
Group string `json:"group,omitempty" yaml:"group"`
26+
Group string `json:"group,omitempty" yaml:"group,omitempty"`
2727

2828
// A key controlling if the action should executed or not.
2929
//

0 commit comments

Comments
 (0)