git-alerts-bot/util/convert/event.js

7 lines
206 B
JavaScript
Raw Normal View History

2018-11-25 18:44:07 +01:00
const github = function (body) {
if (body.commits && body.ref.match("^/refs/heads/") return "commit";
if (body.commits && body.ref.match("^/refs/tags/") return "tag";
};
module.exports = {github};