From 6e9d57a953ba7ca7d79fd36c924f10c6473ba283 Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Thu, 11 Sep 2025 14:28:31 -0700 Subject: [PATCH] Auto assign @alii on anything with types (#22581) Adds a GitHub workflow to assign me on anything with the `types` label --- .github/CODEOWNERS | 4 ++++ .github/workflows/auto-assign-types.yml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/auto-assign-types.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cf21586338..5f99765804 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,3 +3,7 @@ # Tests /test/expectations.txt @Jarred-Sumner + +# Types +*.d.ts @alii +/packages/bun-types/ @alii diff --git a/.github/workflows/auto-assign-types.yml b/.github/workflows/auto-assign-types.yml new file mode 100644 index 0000000000..029002e433 --- /dev/null +++ b/.github/workflows/auto-assign-types.yml @@ -0,0 +1,19 @@ +name: Auto Assign Types Issues + +on: + issues: + types: [labeled] + +jobs: + auto-assign: + runs-on: ubuntu-latest + if: github.event.label.name == 'types' + permissions: + issues: write + steps: + - name: Assign to alii + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + run: | + gh issue edit ${{ github.event.issue.number }} --add-assignee alii \ No newline at end of file