GitHub and Slack are changing the way we program and communicate online. Both offer fast, simple collaboration platforms for diversely located teams. If you’re new to either or both of these and have been asked to show GitHub commits in a Slack channel, what do you do?

First a little background.
GitHub is a code repository service that includes version control, source code management and a range of tools for the compilation of code. It is used by enterprise and by individuals through paid-for or free accounts. It also offers a repository of finished code to web users. In the new world of global collaboration it is one of the most popular collaboration tools on the internet.
A GitHub commit is a change or revision to a file that is then saved or ‘committed’. As GitHub uses version control, each commit is given a unique identifier that enables you to manage revisions effectively. When making a commit, it is normal to add a comment highlighting the changes that you made.
Slack is a messenger app design specifically to enable team collaboration. If you’re old enough to remember when IRC chat was mainstream, Slack will be familiar. If you’re not, it will still be familiar as the interface is very straightforward and easy to pick up. Slack uses channels which are essentially chatrooms to keep conversations (mostly) on topic and coherent.
Adding GitHub commits in a Slack channel means a geographically diverse team can collaborate in real time while also having versions monitored and tracked.
So back to the question at hand of how to show GitHub commits in a Slack channel.
Show GitHub commits in a Slack channel
There are two ways to show GitHub commits in a Slack channel. The first is to use an app called Zapier’s Github-Slack integration. If you’re serious about GitHub and Slack, it might be worth looking into. If you’re a more casual user, you can manually configure Slack to show commits.
First, you need to add GitHub to Slack.
- Visit your GitHub Settings page and click oAuth.
- Add Slack to Authorized applications and Grant Access under Organization access.
- Then select the arrow at the top of the Slack screen.
- Select Configure Integration and then GitHub.
- Select the Slack channel you want to post commits to.
- Select the repository and branch you want to display.
- Select the type of information you want to display.
- Select Save integration.
You can only show GitHub commits you’re an author of, not ones that have been merely shared with you. So this will only work on your own GitHub projects. Other than that you are free to integrate the two as you see fit.
Have any useful GitHub or Slack tips you would like to share? Post them ion the comments section if you do!
Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.