This repository has been archived by the owner on Jan 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding intergation files for Snowy-Evening.com
- Loading branch information
Showing
2 changed files
with
34 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,24 @@ | ||
Snowy Evening | ||
========== | ||
|
||
Notifies your project account on Snowy-Evening.com of commits. | ||
|
||
Install Notes | ||
------------- | ||
|
||
1. Login or create a free or paid account with Snowy-Evening.com | ||
2. Create a project and visit the Project Edit page | ||
3. Find the GitHub integration box, which contains the API Key and Project ID | ||
4. Copy those credentials into these fields. | ||
|
||
|
||
|
||
Developer Notes | ||
--------------- | ||
|
||
data | ||
- api_key (the API key for using the webservice) | ||
- project (identifier of the project belonging to this repository) | ||
|
||
payload | ||
- refer to docs/github_payload (nothing is used by this script) |
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,10 @@ | ||
class Service::SnowyEvening < Service | ||
string :project, :api_key | ||
|
||
def receive_push | ||
http.ssl[:verify] = false | ||
res = http_post "https://snowy-evening.com/api/integration/github_commit/"+data['api_key']+"/"+data['project'], | ||
:payload => JSON.generate(payload) | ||
return | ||
end | ||
end |