#11 Slack - GitHub: Adding GitHub slack integration to get all GitHub events (PRs, Reviews)

Опубликовано: 07 Октябрь 2024
на канале: Power Tester
4,414
58

GitHub: https://github.com/PramodKumarYadav/zero

Goals:
1. Learn how to get automatic notifications about GitHub events (PRs, build checks, approvals)

Objectives:
1. Learn how to add GitHub- slack integration.
2. Learn how to subscribe to a GitHub channel on slack.
3. Learn how to subscribe to custom events.
4. Learn how to unsubscribe to customize events or to the repo itself.

What's next?
Lets add a framework to our project so that we can start adding tests!

In summary:

1. To subscribe to a channel and to default notifications, run the below command - in the slack channel where you want to get notifications - say in zero channel for GitHub notifications:

/github subscribe owner/repo

To subscribe to any particular event, you can run the below command with the desired event name.
/github subscribe owner/repo feature

To unsubscribe from any particular event:
/github unsubscribe owner/repo feature

To unsubscribe from repo.
/github unsubscribe owner/repo