From 25f757f8e70abeee020acea8fcbb215ecb3434df Mon Sep 17 00:00:00 2001 From: NRayya <82588017+NRayya@users.noreply.github.com> Date: Sat, 30 Aug 2025 14:51:17 +0200 Subject: [PATCH] Add auto-labeling new issues for discussion workflow --- .github/workflows/issues.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/issues.yml diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 0000000..b4c8131 --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,26 @@ +# Auto-labeling new issues workflow +name: Auto-Label New Issues + +# Controls when the action will run. +on: + issues: + types: + - opened +permissions: + issues: write + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + label: + runs-on: ubuntu-latest + steps: + - name: Add "discussion" label to new issue + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['discussion'] + }) \ No newline at end of file