Skip to content

Commit

Permalink
label custom issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfm committed May 17, 2023
1 parent d913283 commit d685ed3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/zora/v1alpha1/clusterissue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
LabelIssueID = "id"
LabelCategory = "category"
LabelPlugin = "plugin"
LabelCustom = "custom"
)

// ClusterIssueSpec defines the desired state of ClusterIssue
Expand Down
2 changes: 2 additions & 0 deletions pkg/worker/report/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package report
import (
"fmt"
"io"
"strconv"
"strings"

"github.com/go-logr/logr"
Expand Down Expand Up @@ -49,6 +50,7 @@ func NewClusterIssue(c *config.Config, cispec *zorav1a1.ClusterIssueSpec, orefs
zorav1a1.LabelIssueID: cispec.ID,
zorav1a1.LabelCategory: cispec.Category,
zorav1a1.LabelPlugin: c.Plugin,
zorav1a1.LabelCustom: strconv.FormatBool(cispec.Custom),
},
},
Spec: *cispec,
Expand Down

0 comments on commit d685ed3

Please sign in to comment.