From 972b80b5e5037fa01cdb8a8974c99e88961c87cb Mon Sep 17 00:00:00 2001 From: "Girish Bari (He/Him)" Date: Mon, 13 May 2024 13:11:14 +0530 Subject: [PATCH] Update labeler.yml --- .github/workflows/labeler.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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