Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starfish719/github-to-slack-notification
Send notification to Slack from GitHub and convert mentions.
https://github.com/starfish719/github-to-slack-notification
api-gateway lambda-script nodejs slack webhook
Last synced: 5 days ago
JSON representation
Send notification to Slack from GitHub and convert mentions.
- Host: GitHub
- URL: https://github.com/starfish719/github-to-slack-notification
- Owner: starfish719
- License: mit
- Created: 2020-01-15T07:12:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:57:53.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T04:20:09.936Z (10 months ago)
- Topics: api-gateway, lambda-script, nodejs, slack, webhook
- Language: JavaScript
- Homepage:
- Size: 1.19 MB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-to-slack-notification
## About
Notification script from github to slackConvert github mentions to slack mentions
## Development
- `npm ci`
- `npm run test`## Commit
- `npm run commit`## Setting
### Create slack app
- Access to https://api.slack.com
- Create new app
- Set permission `chat:write:bot`
- Remember the OAuth Access Token
- Use OAuth Access Token when you make a Lambda Script### Create Lambda Script
- Create a AWS Lambda Script
- Use Node.js
- Trigger is AWS API Gateway
- Copy to index.js and common.js
- Create mapping.json
- From github_id to slack_id
- Setting ENV Vals
- API_TOKEN
- OAuth Access Token
- CHANNEL_ID
- Notification slack channel id### Setting Webhook
- Create GitHub repository Webhook setting
- Payload URL
- URL of API Gateway
- Content type
- application/json
- SSL verification
- Enable SSL verification
- Which events would you like to trigger this webhook?
- Send me everything.
- Active
- Check it