From 7a819ac76efd45e34a4031b1ac039bc344be2a52 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Sat, 18 Apr 2026 19:34:24 -0500 Subject: [PATCH] Add auto-label workflow for area:python-functions --- .github/workflows/auto-label-area.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-label-area.yml diff --git a/.github/workflows/auto-label-area.yml b/.github/workflows/auto-label-area.yml new file mode 100644 index 00000000..005fce68 --- /dev/null +++ b/.github/workflows/auto-label-area.yml @@ -0,0 +1,26 @@ +name: Auto-label area + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + add-area-label: + runs-on: ubuntu-latest + steps: + - name: Add area label + uses: actions/github-script@v7 + with: + script: | + const AREA_LABEL = "area:python-functions"; + const labels = context.payload.issue.labels.map(l => l.name); + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.issue.number, + labels: [AREA_LABEL], + }); + }