Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

revert tmm1's last commit

  • Loading branch information...
commit 095f6a5ea8d533782f1dedf1e031cfd84c137689 1 parent cbc1b74
@atmos authored
Showing with 2 additions and 3 deletions.
  1. +1 −1  package.json
  2. +1 −2  src/app.coffee
View
2  package.json
@@ -3,7 +3,7 @@
"description": "GitHub integration with Jenkins CI",
"keywords": "github post-receive hudson jenkins dashboard",
"author": "Corey Donohoe",
- "version": "0.3.2",
+ "version": "0.3.3",
"licenses": [{
"type": "MIT",
"url": "http://github.com/atmos/jinkies/raw/master/LICENSE"
View
3  src/app.coffee
@@ -60,13 +60,12 @@ app.get "/auth/logout", (req, res) ->
# GitHub post-receives land here
app.post "/", (req, res) ->
info = JSON.parse(req.body.payload)
- payload = info.payload
owner = info.repository.owner.name
branch = info["ref"].split("/")[2]
project = "#{owner}-#{info.repository.name}"
- if payload.deleted or (payload.created and payload.commits.length == 0)
+ if info.deleted or (info.created and info.commits.length == 0)
# ignore branch deletions, and new branches with no commits
else
job = app.jinkies.job_for project
Please sign in to comment.
Something went wrong with that request. Please try again.