forked from github/github-services
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ScrumDo-Dev-Group/github-…
…services into ScrumDo-Dev-Group-master
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|