Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix labeler workflow #936

Merged
merged 2 commits into from Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/issue-labeler.yml
@@ -0,0 +1,2 @@
needs_triage:
- '.*'
11 changes: 0 additions & 11 deletions .github/labeler.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/pr-labeler.yml
@@ -0,0 +1,11 @@
needs_triage:
- '.*'
- '.*/*'
- '*'
- '*/*'

docs:
- docs/*

test:
- 'test/*'
25 changes: 16 additions & 9 deletions .github/workflows/triage.yml
@@ -1,26 +1,33 @@
name: Triage

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

on:
issues:
types:
- opened
- reopened

pull_request:
types:
- opened
pull_request_target:

jobs:
triage:
runs-on: ubuntu-latest
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'