mirror of
https://gitlab.com/ceda_ei/git-alerts-bot
synced 2026-08-21 13:12:03 +02:00
Create base structure
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
const github = function (body) {
|
||||
};
|
||||
|
||||
const gitlab = github;
|
||||
|
||||
module.exports = { github, gitlab };
|
||||
@@ -0,0 +1,6 @@
|
||||
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};
|
||||
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
getEvent: require('./event'),
|
||||
commit: require('./commit'),
|
||||
};
|
||||
Reference in New Issue
Block a user