Skip to content

Commit cac06f7

Browse files
authored
fix: override AgainstGitRef via config (#149)
1 parent df23ee0 commit cac06f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/breaking_check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (b BreakingCheck) action(ctx *cli.Context) error {
9595

9696
path := ctx.String(flagLintDirectoryPath.Name)
9797
against := ctx.String(flagAgainstBranchName.Name)
98-
if against != "" {
98+
if cfg.BreakingCheck.AgainstGitRef == "" {
9999
cfg.BreakingCheck.AgainstGitRef = against
100100
}
101101

0 commit comments

Comments
 (0)