Skip to content

Commit

Permalink
chore(log): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Jan 8, 2024
1 parent b0ee67f commit 7a4c7af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/utils-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down

0 comments on commit 7a4c7af

Please sign in to comment.