diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index fd1503e..d5f99f0 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,12 +1,18 @@ -name: "Labeler" +name: Label issues on: - - pull_request_target - + issues: + types: + - reopened + - opened jobs: - triage: - permissions: - contents: read - pull-requests: write + label_issues: runs-on: ubuntu-latest + permissions: + issues: write steps: - - uses: actions/labeler@v4 + - 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