Skip to content

Commit

Permalink
fix: print success for linting without errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Sep 11, 2024
1 parent e99d7c3 commit a0f82a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion cmd/gitlab_lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ func Lint(cCtx *cli.Context) error {
}

// To scm-engine specific linting last
return cfg.Lint(ctx, &gitlab.Context{})
if err := cfg.Lint(ctx, &gitlab.Context{}); err != nil {
return err
}

slogctx.Info(ctx, "No errors found")

return nil
}

type EmbedLoader struct{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type (

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

// A key controlling if the action should executed or not.
//
Expand Down

0 comments on commit a0f82a4

Please sign in to comment.