From ca4906f0419e66e6d9ea58e83c4bcbe8f015345d Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 28 Apr 2021 21:01:06 -0700 Subject: [PATCH] Don't run "Manage PRs" workflow on draft PRs The draft mode clearly indicates that the PR is not ready for processing, so having the submission system run on these PRs will only be an annoyance. --- .github/workflows/manage-prs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manage-prs.yml b/.github/workflows/manage-prs.yml index a17eecc0..311b7536 100644 --- a/.github/workflows/manage-prs.yml +++ b/.github/workflows/manage-prs.yml @@ -22,7 +22,10 @@ on: jobs: diff: if: > - github.event_name == 'pull_request_target' || + ( + github.event_name == 'pull_request_target' && + github.event.pull_request.draft == false + ) || ( github.event_name == 'issue_comment' && github.event.issue.pull_request != '' &&