https://github.com/ebay/tekton-slack-notify
A tekton task which publishes to slack (including thread support!)
https://github.com/ebay/tekton-slack-notify
Last synced: 6 months ago
JSON representation
A tekton task which publishes to slack (including thread support!)
- Host: GitHub
- URL: https://github.com/ebay/tekton-slack-notify
- Owner: eBay
- License: apache-2.0
- Created: 2022-07-22T20:39:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T21:08:37.000Z (over 1 year ago)
- Last Synced: 2025-03-25T22:23:24.782Z (over 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 3
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tekton-slack-notify
====================
`tekton-slack-notify` is a tool for sending slack message into specified channel.
Unlike other slack plugins, this one supports message threadding so you don't spam
the channel with lots of updates about the same topic.
## Installation
To install this tool locally:
```console
$ go get github.com/ebay/tekton-slack-notify
```
Or install it as a Tekton task:
```console
$ kubectl apply -f https://raw.githubusercontent.com/eBay/tekton-slack-notify/refs/heads/main/task.yaml
```
## Usage
To run this tool locally:
```console
$ tekton-slack-notify -h
Usage of tekton-slack-notify:
--channel string channel ID to send message in
--text string message text
--thread-ts string thread ts, when specified, the message will be sent to thread
--token-file string file path containing slack API token
--ts-file string if specified, the message ts will be written into this file
```
Or run a TaskRun like below:
```yaml
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: slack-notify
spec:
params:
- name: channel
value:
- name: text
value:
- name: slack_secret
value:
- name: thread_ts
value:
taskRef:
kind: Task
name: slack-notify
```
## License
[Apache License 2.0][1]
[1]: https://www.apache.org/licenses/LICENSE-2.0