github.com/ungtb10d/cli/v2@v2.0.0-20221110210412-98537dd9d6a1/.github/workflows/issueauto.yml (about)

     1  name: Issue Automation
     2  on:
     3    issues:
     4      types: [opened]
     5  
     6  permissions:
     7    contents: none
     8    issues: write
     9  
    10  jobs:
    11    issue-auto:
    12      runs-on: ubuntu-latest
    13      steps:
    14        - name: label incoming issue
    15          env:
    16            GH_REPO: ${{ github.repository }}
    17            GH_TOKEN: ${{ secrets.AUTOMATION_TOKEN }}
    18            ISSUENUM: ${{ github.event.issue.number }}
    19            ISSUEAUTHOR: ${{ github.event.issue.user.login }}
    20          run: |
    21            if ! gh api orgs/cli/public_members/$ISSUEAUTHOR --silent 2>/dev/null
    22            then
    23              gh issue edit $ISSUENUM --add-label "needs-triage"
    24            fi