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
fe702a6f56
commit
3c924f4f80
1 changed files with 2 additions and 0 deletions
2
main.ts
2
main.ts
|
@ -8,6 +8,8 @@ async function run() {
|
|||
`ℹ️ 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