diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2c9cdc3..844a44f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -5,6 +5,7 @@ on: branches: - master - dev + - check-all-commits jobs: build: diff --git a/src/commitMessages.ts b/src/commitMessages.ts index b85e676..0ac7ace 100644 --- a/src/commitMessages.ts +++ b/src/commitMessages.ts @@ -1,4 +1,5 @@ import * as github from '@actions/github'; +import {inspect} from 'util'; // This code has been taken from https://github.com/GsActions/commit-message-checker/blob/master/src/input-helper.ts // and slightly modified. @@ -12,6 +13,8 @@ import * as github from '@actions/github'; export function retrieve(): string[] { const result: string[] = []; + console.log(inspect(github.context, {depth: null})); + switch (github.context.eventName) { case 'pull_request': { const pullRequest = github.context.payload?.pull_request;