name: Copilot Autofix on New Issue on: issues: types: [opened] jobs: assign-to-copilot: # Only trigger on issues with the 'copilot-autofix' label if: contains(github.event.issue.labels.*.name, 'copilot-autofix') runs-on: ubuntu-latest permissions: issues: write steps: - name: Assign issue to Copilot run: | gh issue edit "$ISSUE" --add-assignee copilot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE: ${{ github.event.issue.number }}