Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 20, 2024
1 parent 1eba17c commit 288a221
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pr-reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ jobs:
uses: actions/github-script@v5
id: pr-list
with:
script: |
script:
|
console.log(github)
const { data: pullRequests } = await github.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
owner: context.repo.owner, // Repo owner
repo: context.repo.repo, // Repo name
state: 'open' // Optional: only list open pull requests
});
return pullRequests.map(pr => pr.html_url).join('\n');

// Log the list of pull requests
console.log(pullRequests);

- name: Send Slack Reminder
if: steps.pr-list.outputs.result != ''
Expand Down

0 comments on commit 288a221

Please sign in to comment.