8000 GitHub - slavcodev/github-slack-gateway: API Gateway to redirect Github Webhooks to Slack.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 30, 2022. It is now read-only.

API Gateway to redirect Github Webhooks to Slack.

License

Notifications You must be signed in to change notification settings

slavcodev/github-slack-gateway

Github-Slack Gateway

Software License Build Status Coverage Status

API Gateway to redirect Github Webhooks to Slack.

Install

  1. Enable Slack Incoming webhooks
  2. Create AWS Lambda function and upload the files
  3. Add bot config in .env.json or into environment variable BOT_CONFIG
  4. Create Lambda proxy endpoint on the AWS API Gateway
  5. Configure Github webhook

Config

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 posted
  • teams.*.channel: Slack chanel ID where notification is posted
  • teams.*.id: Slack group ID mentioned in notification
  • teams.*.name: Slack group name mentioned in notification
  • teams.*.githubTeamName: GitHub team name
  • progressColumn: GitHub project column ID to monitor when cards moving from column to another
  • reviewColumn: GitHub project column ID to monitor when cards moving from column to another

Testing

npm test

Contributing

Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CODE OF CONDUCT for details.

Credits

License

The BSD 2-Clause License. Please see LICENSE for more information.

About

API Gateway to redirect Github Webhooks to Slack.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published
0