From 436bf232be3086769d91561af0aafad09eca8de5 Mon Sep 17 00:00:00 2001 From: hulk510 Date: Thu, 18 Jan 2024 01:00:47 +0900 Subject: [PATCH] test2 --- dist/index.js | 4 +++- src/main.ts | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d94fb4cd..05729193 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29682,7 +29682,9 @@ async function run() { // get context // MEMO: git contextからheadRefは取得できなそう const { repo, ref } = github.context; - core.info(`repo: ${JSON.stringify(github.context.payload.pull_request)}`); + core.info(`request: ${JSON.stringify(github.context.payload.pull_request)}`); + core.info(`number: ${JSON.stringify(github.context.payload.pull_request?.number)}`); + core.info(`head ref: ${JSON.stringify(github.context.payload.pull_request?.head.ref)}`); // const eventPath = process.env.GITHUB_EVENT_PATH const headRef = process.env.GITHUB_HEAD_REF; core.info(`headRef: ${headRef}`); diff --git a/src/main.ts b/src/main.ts index 81162230..ae54f182 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,15 @@ export async function run(): Promise { // MEMO: git contextからheadRefは取得できなそう const { repo, ref } = github.context - core.info(`repo: ${JSON.stringify(github.context.payload.pull_request)}`) + core.info(`request: ${JSON.stringify(github.context.payload.pull_request)}`) + core.info( + `number: ${JSON.stringify(github.context.payload.pull_request?.number)}` + ) + core.info( + `head ref: ${JSON.stringify( + github.context.payload.pull_request?.head.ref + )}` + ) // const eventPath = process.env.GITHUB_EVENT_PATH const headRef = process.env.GITHUB_HEAD_REF