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,