From a5dddb0ddfb8f5d7a7cca97f6162937bd33da986 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 4 Feb 2025 16:59:35 -0800 Subject: [PATCH] Only run Auto Assign PR workflow if PR is not merged (#17888) It appears that currently the `.github/workflows/auto-assign.yml` workflow runs on every PR commit even when an assignee has already been set (e.g. https://github.com/rapidsai/cudf/actions/runs/13062684572/job/36449057944) and on merge on the current branch (e.g. https://github.com/rapidsai/cudf/actions/runs/13072179599/job/36476031430). I think in theory we would only want to run this workflow once upon PR opening (?), but I added a condition to run this workflow if a PR does not have an assignee (name). cc @Matt711 Authors: - Matthew Roeschke (https://github.com/mroeschke) - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Matthew Murray (https://github.com/Matt711) URL: https://github.com/rapidsai/cudf/pull/17888 --- .github/workflows/auto-assign.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 1bf4ac08b69..cb61dac0c9b 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -10,6 +10,7 @@ on: jobs: add_assignees: runs-on: ubuntu-latest + if: ${{ ! github.event.pull_request.merged }} steps: - uses: actions-ecosystem/action-add-assignees@v1 with: