Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Stig Lindqvist authored Aug 28, 2016
1 parent 262bfcf commit de346de
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Send open Github requests to a Slack channel
## configuration

```
export GITHUB_TOKEN="<your personal token here"
export GITHUB_REPOS="user_org/repo1,user_org/repo2"
export SLACK_TOKEN="super_siikrit_slack_token"
export GITHUB_TOKEN="<super_secret_github token>"
export SLACK_TOKEN="<super_secret_slack_token>"
export GITHUB_REPOS="user_org/repo1,user_org/repo2" # comma separated
export SLACK_CHANNEL="my_slack_room"
```

Expand All @@ -21,6 +21,16 @@ export SLACK_CHANNEL="my_slack_room"

This is a one shot action, so you might want to put into a cron or a [systemd timer unit](https://wiki.archlinux.org/index.php/Systemd/Timers)

example `/etc/cron.d/purr` cron that runs purr 8am every day:

```
GITHUB_TOKEN="<super_secret_github token>"
SLACK_TOKEN="<super_secret_slack_token>"
GITHUB_REPOS="user_org/repo1,user_org/repo2" # comma separated
SLACK_CHANNEL="my_slack_room"
0 8 * * * root /usr/bin/purr
```

## End result:

![example.png](./_docs/example.png)

0 comments on commit de346de

Please sign in to comment.