Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed Dec 17, 2024
1 parent 527772d commit fb651cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/604.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/604.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/helpers/get-merge-queue-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ query {
}
}
`);
return data.repository.mergeQueue?.entries?.nodes?.find(entry => entry?.pullRequest?.number === Number(pull_number))?.position;
const mergeQueueEntries = data.repository.mergeQueue?.entries?.nodes;
return mergeQueueEntries?.find(entry => entry?.pullRequest?.number === Number(pull_number))?.position;
};

0 comments on commit fb651cc

Please sign in to comment.