-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically label issues based on regular expression matches in tit…
…le and description
- Loading branch information
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This is a mapping of issue labels to title/description regex patterns used by | ||
# https://github.com/github/issue-labeler to automatically add labels to | ||
# issues when opened/edited. | ||
# | ||
# If multiple patterns are provided in the list for a label, they all have to | ||
# match. | ||
# | ||
# To label when any one of multiple patterns matches, concatenate the patterns | ||
# using a "|" delimeter, to form a single pattern. | ||
# | ||
# "^" appears to match only the beginning of the issue title. | ||
# | ||
# Automatic label removal is currently disabled, but could be enabled. | ||
|
||
crash: | ||
- '^Crash Report|Crash ID: crash/' | ||
|
||
OS/Linux: | ||
- 'OS[|:\s]+Linux|Operating System:\s+Linux' | ||
|
||
OS/Windows: | ||
- 'OS[|:\s]+Windows|Operating System:\s+Windows NT' | ||
|
||
OS/macOS: | ||
- 'OS[|:\s]+Mac OS|Operating System:\s+Mac OS X' | ||
|
||
OS/Android: | ||
- 'OS[|:\s]+Android|Operating System:\s+Android' | ||
|
||
OS/iOS: | ||
- 'OS[|:\s]+iOS|Device/OS:\s+iPhone|Operating System:\s+iOS' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Assign issue labels | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
||
permissions: | ||
issues: write | ||
contents: read | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4 | ||
with: | ||
configuration-path: .github/issue-labeler.yml | ||
enable-versioned-regex: 0 | ||
include-title: 1 | ||
#sync-labels: 1 # This removes also manually added labels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters