- Create incoming web hook on slack by going to https://lcsweb.slack.com/
services
- cd to your bare repo eg:project.git and cd to hooks and create post-receive hook
- Add bash commands to push related information to slack. (You can find many bash scripts published in the internet or you can write your own script referring following parameters in the post-receive hook.
oldrev newrev refname
- Give permission
- cd to your bare repo eg:project.git and execute following commands
git config hooks.slack.channel '#development-xxx'
No comments:
Post a Comment