Skip to content

Commit 293dc77

Browse files
committed
Deprecate SlackDigestFormat on subscriptions
1 parent e117fff commit 293dc77

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

pkg/subscriptions/subscription.go

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,25 @@ type EventNotificationSubscriptionFilter struct {
2121
}
2222

2323
type EventNotificationSubscription struct {
24-
EmailDigestLastProcessed *time.Time `json:"EmailDigestLastProcessed,omitempty"`
25-
EmailDigestLastProcessedEventAutoId *int64 `json:"EmailDigestLastProcessedEventAutoId,omitempty"`
26-
EmailFrequencyPeriod string `json:"EmailFrequencyPeriod"`
27-
EmailPriority string `json:"EmailPriority"`
28-
EmailShowDatesInTimeZoneId string `json:"EmailShowDatesInTimeZoneId"`
29-
EmailTeams []string `json:"EmailTeams"`
30-
Filter *EventNotificationSubscriptionFilter `json:"Filter"`
31-
SlackChannelIds []string `json:"SlackChannelIds"`
32-
SlackChannelNames []string `json:"SlackChannelNames"`
33-
SlackDigestFormat string `json:"SlackDigestFormat"`
34-
SlackFrequencyPeriod string `json:"SlackFrequencyPeriod"`
35-
WebhookHeaderKey string `json:"WebhookHeaderKey"`
36-
WebhookHeaderValue string `json:"WebhookHeaderValue"`
37-
WebhookLastProcessed *time.Time `json:"WebhookLastProcessed,omitempty"`
38-
WebhookLastProcessedEventAutoId *int64 `json:"WebhookLastProcessedEventAutoId,omitempty"`
39-
WebhookTeams []string `json:"WebhookTeams"`
40-
WebhookTimeout string `json:"WebhookTimeout"`
41-
WebhookURI string `json:"WebhookURI"`
24+
EmailDigestLastProcessed *time.Time `json:"EmailDigestLastProcessed,omitempty"`
25+
EmailDigestLastProcessedEventAutoId *int64 `json:"EmailDigestLastProcessedEventAutoId,omitempty"`
26+
EmailFrequencyPeriod string `json:"EmailFrequencyPeriod"`
27+
EmailPriority string `json:"EmailPriority"`
28+
EmailShowDatesInTimeZoneId string `json:"EmailShowDatesInTimeZoneId"`
29+
EmailTeams []string `json:"EmailTeams"`
30+
Filter *EventNotificationSubscriptionFilter `json:"Filter"`
31+
SlackChannelIds []string `json:"SlackChannelIds"`
32+
SlackChannelNames []string `json:"SlackChannelNames"`
33+
// Deprecated: SlackDigestFormat is no longer used by Octopus Server; Slack digests always send a summary. It will be removed in a future release.
34+
SlackDigestFormat string `json:"SlackDigestFormat"`
35+
SlackFrequencyPeriod string `json:"SlackFrequencyPeriod"`
36+
WebhookHeaderKey string `json:"WebhookHeaderKey"`
37+
WebhookHeaderValue string `json:"WebhookHeaderValue"`
38+
WebhookLastProcessed *time.Time `json:"WebhookLastProcessed,omitempty"`
39+
WebhookLastProcessedEventAutoId *int64 `json:"WebhookLastProcessedEventAutoId,omitempty"`
40+
WebhookTeams []string `json:"WebhookTeams"`
41+
WebhookTimeout string `json:"WebhookTimeout"`
42+
WebhookURI string `json:"WebhookURI"`
4243
}
4344

4445
type Subscription struct {
@@ -82,7 +83,7 @@ func NewSubscription(name string) *Subscription {
8283
}
8384
}
8485

85-
func (s *Subscription) GetName() string { return s.Name }
86+
func (s *Subscription) GetName() string { return s.Name }
8687
func (s *Subscription) SetName(name string) { s.Name = name }
8788

8889
func (s *Subscription) Validate() error {

0 commit comments

Comments
 (0)