7 lines
206 B
JavaScript
7 lines
206 B
JavaScript
|
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};
|