@@ -9688,7 +9688,7 @@ var __webpack_exports__ = {};
9688
9688
9689
9689
9690
9690
const core = __nccwpck_require__(2186)
9691
- const { GitHub, context } = __nccwpck_require__(5438)
9691
+ const github = __nccwpck_require__(5438)
9692
9692
9693
9693
const main = async () => {
9694
9694
const token = core.getInput('github-token')
@@ -9705,7 +9705,7 @@ const main = async () => {
9705
9705
const [owner, repo] = repoString.split('/')
9706
9706
repoObject = { owner, repo }
9707
9707
} else {
9708
- repoObject = context.repo
9708
+ repoObject = github. context.repo
9709
9709
}
9710
9710
9711
9711
const query = {
@@ -9714,7 +9714,9 @@ const main = async () => {
9714
9714
}
9715
9715
if (branch) {
9716
9716
query.head =
9717
- branch.indexOf(':') === -1 ? `${context.repo.owner}:${branch}` : branch
9717
+ branch.indexOf(':') === -1
9718
+ ? `${github.context.repo.owner}:${branch}`
9719
+ : branch
9718
9720
}
9719
9721
if (base) {
9720
9722
query.base = base
@@ -9726,9 +9728,9 @@ const main = async () => {
9726
9728
query.direction = direction
9727
9729
}
9728
9730
9729
- const octokit = new GitHub (token)
9731
+ const octokit = github.getOctokit (token)
9730
9732
9731
- const res = await octokit.pulls.list(query)
9733
+ const res = await octokit.rest. pulls.list(query)
9732
9734
const pr = author
9733
9735
? res.data.length && res.data.filter(pr => pr.user.login === author)[0]
9734
9736
: res.data.length && res.data[0]
0 commit comments