Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
auricom committed Sep 20, 2024
1 parent 8e22f54 commit 968f1ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pr-reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: PR Review Reminder

on:
schedule:
- cron: '0 9 * * 1-5' # Every weekday at 9:00 AM UTC
- cron: '0 9 * * 1-5' # Every weekday at 9:00 AM UTC
pull_request:

permissions:
pull-requests: read

jobs:
pr-review:
runs-on: ubuntu-latest
Expand All @@ -16,13 +19,13 @@ jobs:
uses: actions/github-script@v5
with:
script: |
const pullRequests = await github.pulls.list({
const { data: pullRequests } = await github.rest.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
console.log(pullRequests);
console.log(JSON.stringify(pullRequests, null, 2));
- name: Send Slack Reminder
if: steps.pr-list.outputs.result != ''
uses: 8398a7/action-slack@v3
Expand Down

0 comments on commit 968f1ce

Please sign in to comment.