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