Add post priority to incoming and outgoing webhook (#26671)
* Added priority to incoming and outgoing webhook * fixed fat finger * Added priority tests * fixed golint --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -56,6 +56,7 @@ type IncomingWebhookRequest struct {
|
||||
Attachments []*SlackAttachment `json:"attachments"`
|
||||
Type string `json:"type"`
|
||||
IconEmoji string `json:"icon_emoji"`
|
||||
Priority *PostPriority `json:"priority"`
|
||||
}
|
||||
|
||||
func (o *IncomingWebhook) IsValid() *AppError {
|
||||
|
||||
@@ -73,6 +73,7 @@ type OutgoingWebhookResponse struct {
|
||||
Attachments []*SlackAttachment `json:"attachments"`
|
||||
Type string `json:"type"`
|
||||
ResponseType string `json:"response_type"`
|
||||
Priority *PostPriority `json:"priority"`
|
||||
}
|
||||
|
||||
const OutgoingHookResponseTypeComment = "comment"
|
||||
|
||||
Ссылка в новой задаче
Block a user