Skip to content

Commit

Permalink
feat: Expand Slack Trigger Capabilities - blocks,attachments,threads …
Browse files Browse the repository at this point in the history
…and more (#2369)

Signed-off-by: Daniel Soifer <daniel.soifer@codefresh.io>
  • Loading branch information
daniel-codefresh authored Dec 18, 2022
1 parent cc2064e commit 683947f
Show file tree
Hide file tree
Showing 12 changed files with 1,547 additions and 374 deletions.
44 changes: 43 additions & 1 deletion api/jsonschema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3940,11 +3940,45 @@
},
"type": "object"
},
"io.argoproj.sensor.v1alpha1.SlackSender": {
"properties": {
"icon": {
"description": "Icon is the Slack application's icon, e.g. :robot_face: or https://example.com/image.png",
"type": "string"
},
"username": {
"description": "Username is the Slack application's username",
"type": "string"
}
},
"type": "object"
},
"io.argoproj.sensor.v1alpha1.SlackThread": {
"properties": {
"broadcastMessageToChannel": {
"description": "BroadcastMessageToChannel allows to also broadcast the message from the thread to the channel",
"type": "boolean"
},
"messageAggregationKey": {
"description": "MessageAggregationKey allows to aggregate the messages to a thread by some key.",
"type": "string"
}
},
"type": "object"
},
"io.argoproj.sensor.v1alpha1.SlackTrigger": {
"description": "SlackTrigger refers to the specification of the slack notification trigger.",
"properties": {
"attachments": {
"description": "Attachments is a JSON format string that represents an array of Slack attachments according to the attachments API: https://api.slack.com/reference/messaging/attachments .",
"type": "string"
},
"blocks": {
"description": "Blocks is a JSON format string that represents an array of Slack blocks according to the blocks API: https://api.slack.com/reference/block-kit/blocks .",
"type": "string"
},
"channel": {
"description": "Channel refers to which Slack channel to send slack message.",
"description": "Channel refers to which Slack channel to send Slack message.",
"type": "string"
},
"message": {
Expand All @@ -3958,9 +3992,17 @@
},
"type": "array"
},
"sender": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.SlackSender",
"description": "Sender refers to additional configuration of the Slack application that sends the message."
},
"slackToken": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector",
"description": "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages."
},
"thread": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.SlackThread",
"description": "Thread refers to additional options for sending messages to a Slack thread."
}
},
"type": "object"
Expand Down
44 changes: 43 additions & 1 deletion api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

138 changes: 137 additions & 1 deletion api/sensor.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 683947f

Please sign in to comment.