# Integrating GitHub with Slack

## Repo channel

* Create a channel named after the repository, e.g. `#inyourface`
* In that channel, subscribe to it:

```
/github subscribe raghubetina/inyourface
```

* Unsubscribe from default events that you don't want to hear about:

```
/github unsubscribe raghubetina/inyourface pulls
/github unsubscribe raghubetina/inyourface deployments
```

* Subscribe to non-default events that you do want to hear about:

```
/github subscribe raghubetina/inyourface reviews
/github subscribe raghubetina/inyourface comments
```

The most important thing is to be subscribed to `issues`, since we configure Rollbar to create GitHub Issues rather than email us.

You can see all of the available events in [the official docs](https://github.com/integrations/slack#configuration).

## Group code review channel

If this repository is something that you will want code review on,

* In the `#review-requests` channel, subscribe to it:

```
/github subscribe raghubetina/inyourface
```

Subscribe to all code-review related events:

```
/github subscribe raghubetina/inyourface reviews
/github subscribe raghubetina/inyourface comments
```

Unsubscribe from all non-code-review related events:

```
/github unsubscribe raghubetina/inyourface issues
/github unsubscribe raghubetina/inyourface pulls
/github unsubscribe raghubetina/inyourface statuses
/github unsubscribe raghubetina/inyourface commits
/github unsubscribe raghubetina/inyourface deployments
/github unsubscribe raghubetina/inyourface public
/github unsubscribe raghubetina/inyourface releases
```

To keep from being double-notified, unsubscribe from `reviews` and `comments` in the original channel, `#inyourface`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://teachersmanual.firstdraft.com/integrating-github-with-slack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
