Skip to content

Commit

Permalink
add github-script
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Jan 17, 2024
1 parent 1419d54 commit fa32b46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/update-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
// Get a list of all issues created by the PR opener
// See: https://octokit.github.io/rest.js/#pagination
const creator = context.payload.sender.login
const prs = github.rest.pulls.get({
const prs = gawait github.rest.request('GET /repos/{owner}/{repo}/pulls', {
owner: context.repo.owner,
repo: context.repo.repo
});
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
})
console.log(prs)

0 comments on commit fa32b46

Please sign in to comment.