Permalink
Browse files

Added GitHub-Trac plugin service info

  • Loading branch information...
1 parent 7b54415 commit 1e9479f1e0f8547342df1dca1c9a382037a20722 @davglass davglass committed with pjhyett Dec 7, 2008
Showing with 32 additions and 0 deletions.
  1. +23 −0 docs/trac
  2. +9 −0 services/trac.rb
View
@@ -0,0 +1,23 @@
+======================================
+Trac
+======================================
+
+Make sure that you installed the github-trac plugin from here:
+ http://github.com/davglass/github-trac/
+
+Now put the URL of your trac project in the above field.
+
+
+
+It searches commit messages for text in the form of:
+ command #1
+ command #1, #2
+ command #1 & #2
+ command #1 and #2
+
+Instead of the short-hand syntax "#1", "ticket:1" can be used as well, e.g.:
+ command ticket:1
+ command ticket:1, ticket:2
+ command ticket:1 & ticket:2
+ command ticket:1 and ticket:2
+
View
@@ -0,0 +1,9 @@
+service :trac do |data, payload|
+ url = URI.parse(data['url'])
+ # Need to get the GitHub API Token here..
+ api_token = "NEED TO GET THIS.."
+ # Build the URL
+ url = "#{url}/github/#{api_token}"
+ # Send the request..
+ Net::HTTP.post_form(url, payload)
+end

0 comments on commit 1e9479f

Please sign in to comment.