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 cac72c2 commit 1419d54
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/update-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup Node.js
uses: actions/setup-node@v3

- name: Run JavaScript file
run: node ./update-prs.js
- uses: actions/github-script@v7
with:
script: |
// 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({
owner: context.repo.owner,
repo: context.repo.repo
});
console.log(prs)

0 comments on commit 1419d54

Please sign in to comment.