gh repo edit --add-topic
returns 404 on owned personal repo
#3119
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Issue Automation | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
contents: none | |
issues: write | |
jobs: | |
issue-auto: | |
runs-on: ubuntu-latest | |
environment: cli-automation | |
steps: | |
- name: label incoming issue | |
env: | |
GH_REPO: ${{ github.repository }} | |
GH_TOKEN: ${{ secrets.AUTOMATION_TOKEN }} | |
ISSUENUM: ${{ github.event.issue.number }} | |
ISSUEAUTHOR: ${{ github.event.issue.user.login }} | |
run: | | |
if ! gh api orgs/cli/public_members/$ISSUEAUTHOR --silent 2>/dev/null | |
then | |
gh issue edit $ISSUENUM --add-label "needs-triage" | |
fi |