diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index c04e09e773..18825d815f 100755 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -5,7 +5,11 @@ on: pull_request_target: types: [opened, reopened, synchronize] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + # Keyed by the target, not github.ref: for issues and pull_request_target + # events github.ref is always the default/base branch, so a ref-keyed group + # is one repo-wide group and a burst of opened events silently replaces the + # pending run (queue: single is the default), dropping its assignment (#302). + group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number }} cancel-in-progress: false jobs: