Skip to content

Commit

Permalink
Github uses POST instead of GET for commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthaeusHarris committed Apr 11, 2015
1 parent 497f98d commit ea63ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ var githubInstance = new githubApi({
version: '3.0.0'
});

router.get('/ci/hook/update', function(req, res) {
router.post('/ci/hook/update', function(req, res) {
console.log(req.body);
githubInstance.repos.getCommits({
user: "MatthaeusHarris",
repo: "packagetracker"
Expand Down

0 comments on commit ea63ba4

Please sign in to comment.