Skip to content

Commit

Permalink
Log event
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Ferraz <luiz@lferraz.com>
  • Loading branch information
Fryuni committed Oct 31, 2023
1 parent 1a7e3de commit 39a5b82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- dev
- check-all-commits

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions src/commitMessages.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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;
Expand Down

0 comments on commit 39a5b82

Please sign in to comment.