Skip to content

Commit

Permalink
Use separate action for labeling issues
Browse files Browse the repository at this point in the history
Create separate config files for issue and PR labelers
  • Loading branch information
samdoran committed Dec 7, 2021
1 parent 04d7a2d commit 2422ff9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/issue-labeler.yml
@@ -0,0 +1,2 @@
needs_triage:
- '.*'
File renamed without changes.
20 changes: 14 additions & 6 deletions .github/workflows/triage.yml
@@ -1,10 +1,5 @@
name: Triage

permissions:
contents: read
pull-requests: write
issues: write

on:
issues:
types:
Expand All @@ -19,7 +14,20 @@ jobs:
name: Label

steps:
- name: Apply labels
- name: Label pull requests
uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml
if: github.event_name == 'pull_request_target'

- name: Label issues
# This is the latest commit in the v2.4 branch. Waiting for a 2.4.1 or newer release.
# https://github.com/github/issue-labeler/issues/24
uses: github/issue-labeler@99b4c5dda477c65f4ef08486b73c5787e1e33601
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
not-before: 2021-12-07T07:00:00Z
configuration-path: .github/issue-labeler.yml
enable-versioned-regex: 0
if: github.event_name == 'issues'

0 comments on commit 2422ff9

Please sign in to comment.