Skip to content

Commit

Permalink
Merge branch 'develop' patch
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDevelop committed Jan 16, 2019
2 parents 1a610e2 + 8a86afe commit 7aeccab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![version](https://img.shields.io/badge/Version-0.2.0-brightgreen.svg)](https://github.com/SimonDevelop/releaser-bot/releases/tag/0.2.0)
[![version](https://img.shields.io/badge/Version-0.2.1-brightgreen.svg)](https://github.com/SimonDevelop/releaser-bot/releases/tag/0.2.1)
[![Minimum Node Version](https://img.shields.io/badge/node-%3E%3D%206-brightgreen.svg)](https://nodejs.org/en/)
[![GitHub license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/SimonDevelop/releaser-bot/blob/master/LICENSE)
# releaser-bot
Expand Down
8 changes: 6 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ http.createServer(function (req, res) {
req.on('end', function () {
try {
var post = JSON.parse(b);
console.log("webhook detected for "+post.repository.full_name);
checkRepos(post.repository.full_name);
if (post.ref == "refs/heads/master") {
console.log("webhook detected for "+post.repository.full_name);
checkRepos(post.repository.full_name);
} else {
console.log("webhook detected for "+post.repository.full_name+" but is not master branch");
}
res.writeHead(200, {"Content-Type": "application/json"});
res.write('{"message": "Webhook received!"}');
res.end();
Expand Down

0 comments on commit 7aeccab

Please sign in to comment.