From 0461e010bbf031c875d30d5d7a57f5dcad0e8a05 Mon Sep 17 00:00:00 2001 From: Lev Nachmanson Date: Tue, 17 Mar 2026 12:09:01 -1000 Subject: [PATCH] assign every new issue to copilot by default Signed-off-by: Lev Nachmanson --- .github/workflows/copilot-autofix.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/copilot-autofix.yml diff --git a/.github/workflows/copilot-autofix.yml b/.github/workflows/copilot-autofix.yml new file mode 100644 index 000000000..359df1d50 --- /dev/null +++ b/.github/workflows/copilot-autofix.yml @@ -0,0 +1,20 @@ +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 }}