Skip to content

Commit

Permalink
Merge pull request #163 from cap-js/add-issue-label-workflow
Browse files Browse the repository at this point in the history
Add gh workflow to add labels to new issues
  • Loading branch information
hm23 authored Mar 18, 2024
2 parents d415d8c + 5d92df0 commit 2221054
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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: new

0 comments on commit 2221054

Please sign in to comment.