| CARVIEW |
- Source
- Commits
- Network
- Pull Requests (1)
- Issues (25)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Official GitHub Services Integration - You can set these up in your repo admin screen under Service Hooks — Read more
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files.
| name | |
|---|---|
| No matching files | |
Jump to Line
Merge pull request #94 from meh/master
tree 0712ad38fb01b6449904
parent 25e810661f3ed1862dcb parent 682f54e1098aae77492d
| name | age | message | |
|---|---|---|---|
| |
config/ | Thu Mar 10 13:44:06 -0800 2011 | script/bootstrap [technoweenie] |
| |
docs/ | Thu May 12 11:27:29 -0700 2011 | CIA: add branch optional specification [meh] |
| |
script/ | Thu Mar 10 13:44:06 -0800 2011 | script/bootstrap [technoweenie] |
| |
services/ | Fri May 13 11:44:30 -0700 2011 | CIA: fix typo in branch changing stuff [meh] |
| |
spec/ | Mon Apr 18 05:14:42 -0700 2011 | describe 'travis service hook' [kronn] |
| |
vendor/ | Thu Mar 10 14:44:36 -0800 2011 | thin 1.2.2 [technoweenie] |
| |
.gitignore | Thu Mar 10 13:44:06 -0800 2011 | script/bootstrap [technoweenie] |
| |
Gemfile | Thu Mar 10 14:44:36 -0800 2011 | thin 1.2.2 [technoweenie] |
| |
Gemfile.lock | Thu Mar 10 14:44:36 -0800 2011 | thin 1.2.2 [technoweenie] |
| |
LICENSE | Mon Jul 14 01:30:49 -0700 2008 | add LICENSE [pjhyett] |
| |
README.mkdn | Tue Apr 19 06:14:23 -0700 2011 | fix naming convention [technoweenie] |
| |
Rakefile | Sat Dec 04 02:29:35 -0800 2010 | Updated spec/* and Rakefile for RSpec 2.0 [juretta] |
| |
github-services.rb | Thu Mar 31 18:15:45 -0700 2011 | catch errors on staging [tmm1] |
GitHub Services
How the services work
- A post-receive background job is submitted when someone pushes their commits to GitHub
- If the repository the commits belong to has any "Service Hooks" setup, the
job makes a request to
https://services-server/service_name/with the following data:-
params[:payload]containing all of the commit data (the same data you get using the API) -
params[:data]containing the service data (username, password, room, etc)
-
- Sinatra (github-services.rb) processes the request (twitters your data, says something in campfire, posts it to lighthouse, etc)
- Rinse and repeat
Steps to contributing
- Fork the project
-
Create a new file in /services/ called
service_name.rb, using the following template:service :service_name do |data, payload| end Vendor any external gems your code relies on, and make sure to include it in the requires at the top of github-services.rb
Add documentation to
docs/service_name(refer to the others for guidance)Send a pull request from your fork to github/github-services
Once it's accepted we'll add any new necessary data fields to the GitHub front-end so people can start using your addition.
Patches including tests are encouraged
A huge thanks goes out to our many contributors!
Naming Convention
If your service name is two words, the filenames and service key should be underscored, with words separated by an underscore.
# GitHub
# docs/git_hub
# services/git_hub.rb
service :git_hub do |data, payload|
...
end
Running the server locally
- [sudo] gem install hpricot
- git clone git://github.com/github/github-services.git
- cd github-services
ruby github-services.rb
Bugs in the code should be filed under the Issues tab
Problems with the service hooks can be filed here
How to test your service
- Start the github-services Sinatra server with
ruby github-services.rb. By default, it runs on port 8080. - Edit the docs/github_payload file as necessary to test your service. (Usually just editing the "data" values but leaving the "payload" alone.)
- Send the docs/github_payload file to your service by calling:
./script/deliver_payload [service-name]
NOTE: The name of the service and your docs/ file matters. If your service is RunCodeRun, your service
and docs MUST be run_code_run. Good luck!
- © 2011 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security
Keyboard Shortcuts (see all)
Site wide shortcuts
- s
- Focus site search
- ?
- Bring up this help dialog
Commit list
- j
- Move selected down
- k
- Move selected up
- t
- Open tree
- p
- Open parent
- c or o or enter
- Open commit
- y
- Expand URL to its canonical form
Pull request list
- j
- Move selected down
- k
- Move selected up
- o or enter
- Open issue
Issues
- j
- Move selected down
- k
- Move selected up
- x
- Toggle select target
- o or enter
- Open issue
- I
- Mark selected as read
- U
- Mark selected as unread
- e
- Close selected
- y
- Remove selected from view
- c
- Create issue
- l
- Create label
- i
- Back to inbox
- u
- Back to issues
- /
- Focus issues search
Network Graph
- ← or h
- Scroll left
- → or l
- Scroll right
- ↑ or k
- Scroll up
- ↓ or j
- Scroll down
- t
- Toggle visibility of head labels
- shift ← or shift h
- Scroll all the way left
- shift → or shift l
- Scroll all the way right
- shift ↑ or shift k
- Scroll all the way up
- shift ↓ or shift j
- Scroll all the way down
Source Code Browsing
- t
- Activates the file finder
- l
- Jump to line
- y
- Expand URL to its canonical form