1

In my web application we use SVN to integrate code. For every committed code file we receive message in Slack (Application similar to Skype) which lets the other development team members (in same chat group) about new file committed in the repository.

I wish to know how this functionality works, so that I should be able to notify some code changes or commit to the repository in other application. Anybody, please point me in the right direction or please let me know if I'm not clear about any point.

Thank you.

VPK
  • 3,010
  • 1
  • 28
  • 35

1 Answers1

2

Use post-commit hook script which run after every successful commit. Post-commit hooks are commonly used for such kind of notifications.

Here is an example for integrating Slack with Subversion (VisualSVN Server).

According to the Slack API: Community page, there are two tools that you may find useful:

Both of these tools are open-source so they should help you to understand how Slack + Subversion server integration works.

bahrep
  • 29,961
  • 12
  • 103
  • 150
  • Hi @bahrep, thanks for your fast solution! One more thing, could you please tell me how to get the comment set while committing file in SVN with Java? – VPK Aug 19 '15 at 14:08
  • What exactly do you mean by Java here? SVNKit Java library? – bahrep Aug 19 '15 at 14:11
  • Not necessarily using Java, but I want to be able to read the comment written while committing file on Linux. Like in this post, http://stackoverflow.com/questions/1928023/how-can-i-prevent-subversion-commits-without-comments, I want to compare string in comment. Can I use 'SVNKit Java library' for this? – VPK Aug 19 '15 at 14:20
  • By on Linux I mean my SVN server will be on Linux. – VPK Aug 19 '15 at 14:26