You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, spectral-action will fail the check when at least one error has been discovered.
However, warnings for instance will generate annotations without failing the check.
Spectral exposes a flag that determine the minimum severity level that will trigger a failure.
Surfacing the parameter might be interesting to provide a better control to spectral-action users.
The text was updated successfully, but these errors were encountered:
I'm also interested in this feature. As part of the CI action, I'd like Spectral to incorporate the --fail-severity=info option so that all output (other than "hint") will lead to some sort of discussion/fix in the PR. Are there any workarounds? Manually editing the style guide to set all "info" and "warning" level rules to "error" isn't a good option.
Edit: I ended up working around this by manually installing and running Spectral in my GitHub Actions workflow:
By default, spectral-action will fail the check when at least one error has been discovered.
However, warnings for instance will generate annotations without failing the check.
Spectral exposes a flag that determine the minimum severity level that will trigger a failure.
Surfacing the parameter might be interesting to provide a better control to
spectral-action
users.The text was updated successfully, but these errors were encountered: