feat: create action

This commit is contained in:
Adrian Smijulj 2020-06-11 09:11:00 +02:00
parent 3c924f4f80
commit 8aaad82c69

1
dist/main/index.js vendored
View file

@ -23567,6 +23567,7 @@ const isValidCommitMessage = message => message.match(/^[a-z].*:/);
function run() {
return __awaiter(this, void 0, void 0, function* () {
core.info(` Checking if commit messages are following the Conventional Commits specification...`);
console.log('context', JSON.stringify(context, null, 2));
const hasCommits = context.payload && Array.isArray(context.payload.commits);
if (!hasCommits) {
core.info(`No commits to check, skipping...`);