A slack integration for discussing code present on GitHub repository.
/codedisc [github file url] - Enter the github file URL about whose content you want to have discussion with your teammates.(required to be run first)
/showlines [startlinenumber-endlinenumber] - It shows code snippet starting from startlinenumber upto the endlinenumber.
/refer [github file url] [startlinenumber-endlinenumber] - Use it to find the specific code snippet inside the github file. It shows code snippet starting from startlinenumber upto the endlinenumber of the [github file url].
/find [keyword] - It find the lines inside the github file that contains the mentioned keyword.
- Deploy to Heroku
- Remember that url
- Go to your slack team's slash commands configuration
- Add 4 commands, each pointing to these url respectively:
- codedisc, [your-deployed-heroku-url]/codereview
- showlines, [your-deployed-heroku-url]/showline
- refer, [your-deployed-heroku-url]/refer
- find, [your-deployed-heroku-url]/search
- Configure other options as you see fit, and you are done!