Skip to content

Commit

Permalink
Only run Auto Assign PR workflow if PR is not merged (#17888)
Browse files Browse the repository at this point in the history
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: #17888
  • Loading branch information
mroeschke authored Feb 5, 2025
1 parent 735c89a commit a5dddb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a5dddb0

Please sign in to comment.