Skip to content

Commit

Permalink
Update label_issues.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
willbakst authored Dec 19, 2024
1 parent 66bad00 commit 23c3614
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/label_issues.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
name: Auto Label Issues
name: Label Issues

on:
issues:
types: [opened]

types:
- reopened
- opened
jobs:
add-labels:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: Add default label
uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.name,
issue_number: context.issue.number,
labels: ['mirascope']
})
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: mirascope

0 comments on commit 23c3614

Please sign in to comment.