Skip to content
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

Have a status to know when the lint has found any warning #2577

Open
jdrcabral opened this issue Jan 18, 2024 · 0 comments
Open

Have a status to know when the lint has found any warning #2577

jdrcabral opened this issue Jan 18, 2024 · 0 comments
Labels
CLI CLI component enhancement New feature or request

Comments

@jdrcabral
Copy link

User story.
Have a status to know when the lint execution has warnings

Is your feature request related to a problem?
I have spectral configured in my Gitlab CI, configured following the Continuous Integration documentation for Gitlab.
I wanted to when we have warning when executing the linter, to the job on Gitlab to be marked as warning instead of a success. I need a way to capture that output and raise as warning so we can easily check the jobs

I can't change the fail-severity, because it shouldn't make the job in the pipeline fail.

Describe the solution you'd like
Maybe a different return status for when it executed with any warnings, also shouldn't be the same for an error

Additional context
Here we a list of job status: https://docs.gitlab.com/ee/ci/jobs/#the-order-of-jobs-in-a-pipeline

@mnaumanali94 mnaumanali94 added enhancement New feature or request CLI CLI component labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI CLI component enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants