Skip to content

Commit c7c1d7b

Browse files
committed
fix: report slack project channel flag boolean
1 parent f350388 commit c7c1d7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/patrol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var PatrolFlags = []cli.Flag{
7979
Usage: "Enable reporting to Slack through messages in the specified channel.",
8080
Category: string(Reporting),
8181
}),
82-
altsrc.NewStringFlag(&cli.StringFlag{
82+
altsrc.NewBoolFlag(&cli.BoolFlag{
8383
Name: reportSlackProjectChannelFlag,
8484
Usage: "Enable reporting to Slack through messages in the specified project's channel. Requires a project-level configuration file specifying the channel.",
8585
Category: string(Reporting),
@@ -149,7 +149,7 @@ func PatrolAction(cCtx *cli.Context) error {
149149
cCtx.StringSlice(projectsFlag),
150150
cCtx.Bool(reportGitlabFlag),
151151
cCtx.String(reportSlackChannelFlag),
152-
cCtx.Bool(publicSlackChannelFlag),
152+
cCtx.Bool(reportSlackProjectChannelFlag),
153153
cCtx.Bool(silentReport),
154154
verbose,
155155
); err != nil {

0 commit comments

Comments
 (0)