From fa25f7b56de833cf1749f012cdad29ed1e6588fd Mon Sep 17 00:00:00 2001 From: Arnav K Date: Mon, 5 Feb 2024 17:15:13 +0000 Subject: [PATCH] testingg --- dist/index.js | 6 +++--- index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3e6b676..31aed8f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31764,8 +31764,8 @@ const initAction = async () => { **/ const GEMINI_API_KEY = core.getInput("gemini_api_key", { required: true }); const token = core.getInput("token", { required: true }); - const owner = github.context.repository.split("/")[0]; - const repo = github.context.repository.split("/")[1]; + const owner = github.context.repo.owner; + const repo = github.context.repo.repo; const pull_number = github.context.payload.pull_request.number; const includeEmoji = core.getBooleanInput("include_emoji", { required: false, @@ -31774,7 +31774,6 @@ const initAction = async () => { /** * Logging details */ - core.debug(`Github Payload: ${github.context.payload}`); core.notice( `Repo Owner: ${owner}\nRepo Name: ${repo}\nPull Request Number: ${pull_number}\nEmojis Included: ${includeEmoji}`, ); @@ -31856,6 +31855,7 @@ const initAction = async () => { }; // Call the action +core.debug(`Github Payload: ${github.context}`); initAction(); })(); diff --git a/index.js b/index.js index 8267e7e..6cd5498 100644 --- a/index.js +++ b/index.js @@ -50,8 +50,8 @@ const initAction = async () => { **/ const GEMINI_API_KEY = core.getInput("gemini_api_key", { required: true }); const token = core.getInput("token", { required: true }); - const owner = github.context.repository.split("/")[0]; - const repo = github.context.repository.split("/")[1]; + const owner = github.context.repo.owner; + const repo = github.context.repo.repo; const pull_number = github.context.payload.pull_request.number; const includeEmoji = core.getBooleanInput("include_emoji", { required: false, @@ -60,7 +60,6 @@ const initAction = async () => { /** * Logging details */ - core.debug(`Github Payload: ${github.context.payload}`); core.notice( `Repo Owner: ${owner}\nRepo Name: ${repo}\nPull Request Number: ${pull_number}\nEmojis Included: ${includeEmoji}`, ); @@ -142,4 +141,5 @@ const initAction = async () => { }; // Call the action +core.debug(`Github Payload: ${github.context}`); initAction();