From 1419d5419c23d79cd76b6ccbdc43826dcfcd7d19 Mon Sep 17 00:00:00 2001 From: benStre Date: Wed, 17 Jan 2024 19:46:54 +0100 Subject: [PATCH] add github-script --- .github/workflows/update-prs.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-prs.yml b/.github/workflows/update-prs.yml index da5062b1..7df927f5 100644 --- a/.github/workflows/update-prs.yml +++ b/.github/workflows/update-prs.yml @@ -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) \ No newline at end of file