Skip to content

Commit

Permalink
Add a link to CHANGELOG for the -fail-on-error deprecation log
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Jul 26, 2024
1 parent 2c0dc58 commit 1762e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/reviewdog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ func localDiffService(opt *option) (reviewdog.DiffService, error) {

func failLevel(opt *option) reviewdog.FailLevel {
if opt.failOnError {
slog.Warn("reviewdog: -fail-on-error is deprecated. Use -fail-level=any, or -fail-level=error for github-[pr-]check reporter instead.")
slog.Warn("reviewdog: -fail-on-error is deprecated. Use -fail-level=any, or -fail-level=error for github-[pr-]check reporter instead. See also https://github.com/reviewdog/reviewdog/blob/master/CHANGELOG.md")
if opt.failLevel == reviewdog.FailLevelDefault {
switch opt.reporter {
default:
Expand Down

0 comments on commit 1762e0a

Please sign in to comment.