Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 committed Apr 4, 2024
1 parent 840996d commit b73df62
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: 'Pull Request Labeler'
on:
pull_request:
types: [opened]
name: 'Automate labeling'
on: pull_request

jobs:
# Labele the PR based on the configuration in `.github/labeler.yml` using https://github.com/actions/labeler
labeler:
if: github.event.action == 'opened'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
# See `.github/labeler.yml` for the configuration
- uses: actions/labeler@v5

remove-needs-triage-when-assigned:
if: github.event.action == 'assigned'
uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'needs-triage'

0 comments on commit b73df62

Please sign in to comment.