From fbe07cf18ce4d3fdf68c2d4bc02b87bf3deeae5a Mon Sep 17 00:00:00 2001 From: Super Zheng Date: Tue, 10 Jan 2023 13:51:47 +0800 Subject: [PATCH] feat(workflows): PR review notification filter draft PR (#2854) --- .github/workflows/gh_pr_review_notification.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh_pr_review_notification.yml b/.github/workflows/gh_pr_review_notification.yml index 706900a6573..56d59c13643 100644 --- a/.github/workflows/gh_pr_review_notification.yml +++ b/.github/workflows/gh_pr_review_notification.yml @@ -139,11 +139,11 @@ jobs: const { pulls } = github.rest; const os = require('os'); - const pull_requests = await github.paginate(pulls.list, { + const pull_requests = (await github.paginate(pulls.list, { per_page: 100, state: 'open', ...context.repo - }); + })).filter(pull => pull.draft === false); const requested_reviewers = await Promise.all( pull_requests.map(