diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 000000000..2bafed9a9 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,22 @@ +# Adding labels to issues +# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues +# +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - run: gh issue edit "$NUMBER" --add-label "$LABELS" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + LABELS: Triage +