From 39a5b8213c3365f7f18ea3dcfea3ca435b7c509b Mon Sep 17 00:00:00 2001 From: Luiz Ferraz Date: Tue, 31 Oct 2023 07:44:26 -0300 Subject: [PATCH] Log event Signed-off-by: Luiz Ferraz --- .github/workflows/build-and-test.yml | 1 + src/commitMessages.ts | 3 +++ 2 files changed, 4 insertions(+) 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;