Skip to content

Commit

Permalink
✨ Add new notification types to activity cli (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Munklinde96 authored Oct 22, 2024
1 parent 0ddda49 commit d0e4105
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions cmd/common/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ func TopicToString(t model.NotificationTopic) string {
return "Issue"
case model.NotificationTopic_NOTIFICATION_TOPIC_ROLLOUT:
return "Rollout"
case model.NotificationTopic_NOTIFICATION_TOPIC_CAPSULE:
return "Capsule"
case model.NotificationTopic_NOTIFICATION_TOPIC_USER:
return "User"
case model.NotificationTopic_NOTIFICATION_TOPIC_PROJECT:
return "Project"
case model.NotificationTopic_NOTIFICATION_TOPIC_ENVIRONMENT:
return "Environment"
default:
return "Unknown"
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require (
github.com/nyaruka/phonenumbers v1.1.7
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.70.0
github.com/rigdev/rig-go-api v0.0.0-20241021120618-8a5ebe64928e
github.com/rigdev/rig-go-api v0.0.0-20241021160034-62cd93877247
github.com/rigdev/rig-go-sdk v0.0.0-20241021090503-b515c1ca035f
github.com/rivo/tview v0.0.0-20240524063012-037df494fb76
github.com/robfig/cron v1.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ github.com/prometheus/common v0.59.1 h1:LXb1quJHWm1P6wq/U824uxYi4Sg0oGvNeUm1z5dJ
github.com/prometheus/common v0.59.1/go.mod h1:GpWM7dewqmVYcd7SmRaiWVe9SSqjf0UrwnYnpEZNuT0=
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
github.com/rigdev/rig-go-api v0.0.0-20241021120618-8a5ebe64928e h1:5wW6yx4Z9o6o758RWogrUtUV+vhGSHANxC8bziptrEo=
github.com/rigdev/rig-go-api v0.0.0-20241021120618-8a5ebe64928e/go.mod h1:6xxlwvADYBFRiIrot3yrcXVJT2IMGfkTZ5LIRomNlXY=
github.com/rigdev/rig-go-api v0.0.0-20241021160034-62cd93877247 h1:oPBaX5xZ6+Us9z9fru1YC2qzYeOttmJQE0NEcimK8h4=
github.com/rigdev/rig-go-api v0.0.0-20241021160034-62cd93877247/go.mod h1:6xxlwvADYBFRiIrot3yrcXVJT2IMGfkTZ5LIRomNlXY=
github.com/rigdev/rig-go-sdk v0.0.0-20241021090503-b515c1ca035f h1:SScDJVwFt/QzURstwUdi/ejnRoqB1ZsBLlICPD6Lt0c=
github.com/rigdev/rig-go-sdk v0.0.0-20241021090503-b515c1ca035f/go.mod h1:DJAwoPmFI6Jo71n/2VfFk/Nyzlyd24ARWCLC4Hsm1gg=
github.com/rivo/tview v0.0.0-20240524063012-037df494fb76 h1:iqvDlgyjmqleATtFbA7c14djmPh2n4mCYUv7JlD/ruA=
Expand Down

0 comments on commit d0e4105

Please sign in to comment.