API Gateway to redirect Github Webhooks to Slack.
- Enable Slack Incoming webhooks
- Create AWS Lambda function and upload the files
- Add bot config in
.env.json
or into environment variableBOT_CONFIG
- Create
Lambda proxy
endpoint on the AWS API Gateway - Configure Github webhook
The config example:
{
"hookPath": "/services/XXXYYYZZZ/ZZZYYYXXX/xyzxyzxyzxyzxyzxyzxyzxyzxyzxyz",
"teams": [
{
"channel": "#channel_hash",
"id": "FOOBARBAZ",
"name": "team_name_in_slack",
"githubTeamName": "team_name_in_github"
}
],
"progressColumn": 3036545,
"reviewColumn": 3038366
}
hookPath
: Slack hook URL path where notification is postedteams.*.channel
: Slack chanel ID where notification is postedteams.*.id
: Slack group ID mentioned in notificationteams.*.name
: Slack group name mentioned in notificationteams.*.githubTeamName
: GitHub team nameprogressColumn
: GitHub project column ID to monitor when cards moving from column to anotherreviewColumn
: GitHub project column ID to monitor when cards moving from column to another
npm test
Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CODE OF CONDUCT for details.
The BSD 2-Clause License. Please see LICENSE for more information.