-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
49 lines (38 loc) · 1.59 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
== Synopsis
Party like it's 2007! I know all the cool kids have migrated to git, but I found this script in my
cupboard and thought I may as well release it in case it's of use to anybody.
This script is an scm hook script (initially for svn) to submit commit messages to a
twitter feed for notification.
== Examples
Add the following to your post-commit file
REPOS="$1"
REV="$2"
/opt/svn/hooks/ruby_scm_twitter.rb -u <twitter username> -p <twitter password> -f "${REPOS}" -r "${REV}"
== Usage
* SVN
* Put ruby-scm-twitter.rb in your hooks directory
* Make sure it is executable
* Register a twitter user, add friends (keep the user's feed private
if you dont want the world reading your commits...)
* Edit your post-commit file in hooks to call the script
== Prerequisites
You'll need the following gems: twitter, httparty
You will also need the svn binaries in your path statement to allow svnlook to be called
== Options
-u, --user Twitter username
-p, --password Twitter password
-f, --file Repository of commit
-r, --revision Revision number of commit
-s, --scm SCM to use (initially only supports SVN)
-v, --version Display version of this script
-V, --verbose Verbose
-h, --help Help
== Author
Chris Anderton
http://thewebfellas.com
Inspired by twitvn (http://code.google.com/p/twitvn/)
Application skeleton by Todd Werth (http://blog.infinitered.com/entries/show/5)
== Copyright
Copyright (c) 2009 Chris Anderton.
Licensed under the GNU General Public License v3
http://www.gnu.org/licenses/gpl.html