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