Skip to content

Instantly share code, notes, and snippets.

View pietervp's full-sized avatar

Pieter Van Parys pietervp

View GitHub Profile
@dpizzuto
dpizzuto / post-commit_slack
Created March 3, 2014 17:58
This snippet enables the post-commit SVN operation and notification through Slack service (https://slack.com). Information of commit is drived by payload JSON and POST operation. Tested on Centos 6.4 with SVN 1.7. Lib perl-JSON is required. File must be copied into /myrepo/hooks directory and named like "post-commit".
#! /usr/bin/env perl
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repository)