A slack slash command that will query github search api with the given command. Created to ask what are the open and closed pull request for the configured organization. Additional features have access to githubs filter strings.
Example Commands:
- /pr open
- /pr closed
- /pr open 4
- /pr org:nodejs is:pr author:orangemocha
- /pr org:nodejs is:issue
When a slash command is given to slack, they hit the configured server and endpoint. For example if you set the host as slackbot.mydomain.com
and endpoint /pr
, when a slash command is given, they hit http://slackbot.mydomain.com/pr
.
In the config.js there is a property called command.name (/pr for example example). When configuring slash command in slack endpoint, enter command.name (/pr).
Localhost: To run the server locally that will talk to the remote slack servers, download and install ngrok. Ngrok will make a proxy that will hit your local computer DIRECTLY! This is meant for development only.
- run (npm install)
- Create a slash command in slack
- Run ngrok service (ngrok http 3000)
- Copy host and update the slack slash command url on slack.com
- Start server with (npm start)
- In slack (/pr open)
The slack
- Generate token key so only configure owner can access the api
- Make /pr help nicer
- Add some tests
- Updated README more
- describe required configuration