Skip to content

Commit

Permalink
feat: allow muting with custom comments
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed May 19, 2024
1 parent bcd8120 commit d13432b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ func ParseSilenceOptions(query string, c tele.Context) (*types.Silence, string)
matchers := types.QueryMatcherFromKeyValueString(rest)

for _, matcher := range matchers {
if matcher.Key == "comment" {
silence.Comment = matcher.Value
continue
}

matcherParsed := types.SilenceMatcher{
Name: matcher.Key,
Value: matcher.Value,
Expand Down

0 comments on commit d13432b

Please sign in to comment.