Skip to content

Commit

Permalink
testingg
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnavK-09 committed Feb 5, 2024
1 parent 1ba443e commit fa25f7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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}`,
);
Expand Down Expand Up @@ -31856,6 +31855,7 @@ const initAction = async () => {
};

// Call the action
core.debug(`Github Payload: ${github.context}`);
initAction();

})();
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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}`,
);
Expand Down Expand Up @@ -142,4 +141,5 @@ const initAction = async () => {
};

// Call the action
core.debug(`Github Payload: ${github.context}`);
initAction();

0 comments on commit fa25f7b

Please sign in to comment.