Skip to content

Commit

Permalink
fix: Maintainers annotation can only be used in experimental mode
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
  • Loading branch information
gabibguti committed Mar 4, 2024
1 parent c5253b7 commit ef8d916
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions options/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ func (o *Options) AddFlags(cmd *cobra.Command) {
"show extra details about each check",
)

cmd.Flags().BoolVar(
&o.ShowMaintainersAnnotation,
FlagShowMaintainersAnnotation,
o.ShowMaintainersAnnotation,
"show maintainers annotations for checks",
)
if o.isExperimentalEnabled() {
cmd.Flags().BoolVar(
&o.ShowMaintainersAnnotation,
FlagShowMaintainersAnnotation,
o.ShowMaintainersAnnotation,
"show maintainers annotations for checks",
)
}

cmd.Flags().IntVar(
&o.CommitDepth,
Expand Down

0 comments on commit ef8d916

Please sign in to comment.