Replace labeler workflow with GH labeler (#3966)

* Rename labeler.yml to pr-labeler.yml

* set config path to point to renamed labeler

* Create label-issue.yml

* Create issue-labeler.yml

* Delete autoLabelIssue.yaml

* Add all the other labels

* fix certain labels not being applied
This commit is contained in:
efb4f5ff-1298-471a-8973-3d47447115dc 2023-08-29 04:33:12 +00:00 committed by GitHub
parent c5be5e5700
commit 692a3c7ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 84 additions and 104 deletions

65
.github/issue-labeler.yml vendored Normal file
View File

@ -0,0 +1,65 @@
'B: visual':
- '(visual bug)'
'B: Unofficial Download':
- '(AUR|Chocolatey|FreeTubeCordova|PortableApps|winget|Scoop|Snapcraft|MPR|Nix)'
'B: keyboard control':
- '(keyboard control not working)'
'B: text/string':
- '(text/string issue)'
'B: content not loading':
- '(content not loading)'
'B: accessibility':
- '(accessibility issue)'
'B: usability':
- '(usability issue)'
'B: crash':
- '(causes crash)'
'B: feature stopped working':
- '(feature stopped working)'
'B: inconsistent behavior':
- '(inconsistent behavior)'
'B: data loss':
- '(data loss)'
'B: race condition':
- '(race condition)'
'B: API issue':
- '(API issue)'
'B: developer mode':
- '(only happens in developer mode)'
'E: improvement existing feature':
- '(improvement to existing feature)'
'E: new optional setting':
- '(new optional setting)'
'E: visual improvement':
- '(visual improvement)'
'E: display more information':
- '(display more information to user)'
'E: ease of use improvement':
- '(ease of use improvement)'
'E: support external software':
- '(support for external software)'
'E: new feature':
- '(new feature)'
'E: keyboard shortcut':
- '(new keyboard shortcut)'

View File

@ -1,104 +0,0 @@
name: "Set Issue Label and Assignee"
on:
issues:
types: [opened]
jobs:
label_issue:
runs-on: ubuntu-latest
steps:
- uses: Naturalclar/issue-action@v2.0.2
with:
title-or-body: "body"
parameters: >-
[
{
"keywords": ["visual bug"],
"labels": ["B: visual"]
},
{
"keywords": ["AUR", "Chocolatey", "FreeTubeCordova", "PortableApps", "winget", "Scoop", "Snapcraft", "MPR", "Nix"],
"labels": ["B: Unofficial Download"]
},
{
"keywords": ["keyboard control not working"],
"labels": ["B: keyboard control"]
},
{
"keywords": ["text/string issue"],
"labels": ["B: text/string"]
},
{
"keywords": ["content not loading"],
"labels": ["B: content not loading"]
},
{
"keywords": ["accessibility issue"],
"labels": ["B: accessibility"]
},
{
"keywords": ["usability issue"],
"labels": ["B: usability"]
},
{
"keywords": ["causes crash"],
"labels": ["B: crash"]
},
{
"keywords": ["feature stopped working"],
"labels": ["B: feature stopped working"]
},
{
"keywords": ["inconsistent behavior"],
"labels": ["B: inconsistent behavior"]
},
{
"keywords": ["data loss"],
"labels": ["B: data loss"]
},
{
"keywords": ["race condition"],
"labels": ["B: race condition"]
},
{
"keywords": ["API issue"],
"labels": ["B: API issue"]
},
{
"keywords": ["only happens in developer mode"],
"labels": ["B: developer mode"]
},
{
"keywords": ["improvement to existing feature"],
"labels": ["E: improvement existing feature"]
},
{
"keywords": ["new optional setting"],
"labels": ["E: new optional setting"]
},
{
"keywords": ["visual improvement"],
"labels": ["E: visual improvement"]
},
{
"keywords": ["display more information to user"],
"labels": ["E: display more information"]
},
{
"keywords": ["ease of use improvement"],
"labels": ["E: ease of use improvement"]
},
{
"keywords": ["support for external software"],
"labels": ["E: support external software"]
},
{
"keywords": ["new feature"],
"labels": ["E: new feature"]
},
{
"keywords": ["new keyboard shortcut"],
"labels": ["E: keyboard shortcut"]
}
]
github-token: "${{ secrets.GITHUB_TOKEN }}"

18
.github/workflows/label-issue.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: "Issue Labeler"
on:
issues:
types: [opened]
permissions:
issues: write
contents: read
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.2
with:
configuration-path: .github/issue-labeler.yml
enable-versioned-regex: 0
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -14,3 +14,4 @@ jobs:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml