Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…services into ScrumDo-Dev-Group-master
  • Loading branch information
technoweenie committed Aug 18, 2011
2 parents 0ba93ac + 0edf239 commit f0092c3
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/scrumdo
@@ -0,0 +1,38 @@
ScrumDo
=======

ScrumDo is an agile/scrum project management site found at http://www.scrumdo.com
Integrating Github with ScrumDo lets you see commits in your project newsfeed, and allows you to update stories via commit messages.

To update a story, type Story #(num) Status as part of your commit message. Examples:

* Story #13 Done
* Story #5 Doing
* Story #3 Reviewing

Install Notes
-------------

1. Username and Password are your ScrumDo.com credentials.

2. The project slug can be found in the URL of your project.

Given this URL:

http://www.scrumdo.com/projects/project/acme-project/

Your project slug is acme-project




Developer Notes
---------------

data
- username
- password
- project_slug

payload
- refer to docs/github_payload
21 changes: 21 additions & 0 deletions services/scrumdo.rb
@@ -0,0 +1,21 @@
class Service::ScrumDo < Service
string :username
string :password
string :project_slug

def receive_push
username = data["username"]
password = data["password"]

url = "http://www.scrumdo.com/hooks/github/#{data["project_slug"]}"
res = http_post url do |req|
req.body = {:payload => payload.to_json, :username=>username, :password=>password}
end

if res.status < 200 || res.status > 299
raise_config_error
end

end
end

0 comments on commit f0092c3

Please sign in to comment.