mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-23 10:21:51 +01:00
feat: create action
This commit is contained in:
parent
3c924f4f80
commit
8aaad82c69
1 changed files with 1 additions and 0 deletions
1
dist/main/index.js
vendored
1
dist/main/index.js
vendored
|
@ -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...`);
|
||||
|
|
Loading…
Reference in a new issue