From 7a4c7af1e991e30af11622cbf3302f15fdce51db Mon Sep 17 00:00:00 2001 From: Miguel Langarano Date: Mon, 8 Jan 2024 17:37:46 -0500 Subject: [PATCH] chore(log): fix typo --- src/utils-e2e.js | 2 +- src/utils-spec.js | 2 +- src/utils.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils-e2e.js b/src/utils-e2e.js index ba40840..a58536e 100644 --- a/src/utils-e2e.js +++ b/src/utils-e2e.js @@ -26,7 +26,7 @@ describe('utils', () => { const eventResult = { headRef: event.pull_request.head.ref, - headhSha: event.pull_request.head.sha, + headSha: event.pull_request.head.sha, baseRef: event.pull_request.base.ref, baseSha: event.pull_request.base.sha, issueUrl: event.pull_request.issue_url, diff --git a/src/utils-spec.js b/src/utils-spec.js index abad1f6..d4f1422 100644 --- a/src/utils-spec.js +++ b/src/utils-spec.js @@ -30,7 +30,7 @@ describe('utils', () => { const eventResult = { headRef: event.pull_request.head.ref, - headhSha: event.pull_request.head.sha, + headSha: event.pull_request.head.sha, baseRef: event.pull_request.base.ref, baseSha: event.pull_request.base.sha, issueUrl: event.pull_request.issue_url, diff --git a/src/utils.js b/src/utils.js index 55d9223..50371a9 100644 --- a/src/utils.js +++ b/src/utils.js @@ -54,7 +54,7 @@ function getFields () { * Gets the event data in github actions environment * @param {string} eventFilePath * @param {string 'true' | 'false' | undefined} isGha - * @returns {headRef: string; headhSha: string; baseRef: string; baseSha: string; issueUrl: string; htmlUrl: string; prTitle: string; senderAvatarUrl: string; senderHtmlUrl: string;} + * @returns {headRef: string; headSha: string; baseRef: string; baseSha: string; issueUrl: string; htmlUrl: string; prTitle: string; senderAvatarUrl: string; senderHtmlUrl: string;} */ function getGhaEventData (eventFilePath, isGha) { try { @@ -65,7 +65,7 @@ function getGhaEventData (eventFilePath, isGha) { const data = JSON.parse(fs.readFileSync(eventFilePath)) return { headRef: data.pull_request.head.ref, - headhSha: data.pull_request.head.sha, + headSha: data.pull_request.head.sha, baseRef: data.pull_request.base.ref, baseSha: data.pull_request.base.sha, issueUrl: data.pull_request.issue_url,