Giter Club home page Giter Club logo

tekton-slack-notify's Introduction

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:

$ go get github.com/ebay/tekton-slack-notify

Or install it as a Tekton task:

$ kubectl apply -f https://raw.githubusercontent.com/ebay/tekton-slack-notify/task.yaml

Usage

To run this tool locally:

$ 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:

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: slack-notify
spec:
  params:
  - name: channel
    value: <slack channel id>
  - name: text
    value: <text to send>
  - name: slack_secret
    value: <a secret with token key - an oauth slack token>
  - name: thread_ts
    value: <timestamp of parent message>
  taskRef:
    kind: Task
    name: slack-notify

License

Apache License 2.0

tekton-slack-notify's People

Contributors

zhouhaibing089 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.