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 8e22f54
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pr-reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ on:
pull_request:

jobs:
send_slack_reminder:
pr-review:
runs-on: ubuntu-latest
steps:
- name: List open pull requests
- name: Checkout repository
uses: actions/checkout@v3

- name: List open pull requests using GitHub Script
uses: actions/github-script@v5
id: pr-list
with:
script: |
const { data: pullRequests } = await github.pulls.list({
const pullRequests = await github.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
return pullRequests.map(pr => pr.html_url).join('\n');
console.log(pullRequests);
- name: Send Slack Reminder
if: steps.pr-list.outputs.result != ''
Expand Down

0 comments on commit 8e22f54

Please sign in to comment.