https://github.com/linyows/wercker-step-slack_notification
Posts a message to an Slack channel.
https://github.com/linyows/wercker-step-slack_notification
Last synced: 29 days ago
JSON representation
Posts a message to an Slack channel.
- Host: GitHub
- URL: https://github.com/linyows/wercker-step-slack_notification
- Owner: linyows
- Created: 2015-02-27T07:22:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-02T03:06:30.000Z (about 10 years ago)
- Last Synced: 2025-04-03T13:00:36.991Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 238 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Slack-Notification Step
=======================Posts a message to an Slack channel.
[][wercker]
[wercker]: https://app.wercker.com/#applications/54f036adb05d633123007959Preview
-------
Options
-------- token (required)
- subdomain (optional, default: nil)
- channel (optional, default: #general)
- endpoint (optional, default: https://slack.com/api/chat.postMessage)
- username (optional, default: Wercker)
- icon_emoji (optional, default: )
- icon_url (optional, default: )
- title (optional, default: owner/project)
- title_link (optional, default: project url)
- passed-text (optional, default: )
- passed-color (optional, default: )
- failed-text (optional, default: )
- failed-color (optional, default: )
- on (optional, default: always)Example
-------### If use API:
```yaml
build:
after-steps:
- linyows/slack_notification:
token: $SLACK_TOKEN
channel: C038M2LE1
```channel_id: https://api.slack.com/methods/channels.list/test
### If use incomming webhook:
```yaml
build:
after-steps:
- linyows/slack_notification:
token: $SLACK_TOKEN
channel: #general
subdomain: foo
```License
-------The MIT License (MIT)