forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-label new issues based on MDN URLs in description (mdn#14212)
* Auto-label new issues based on MDN URLs in description This change causes appropriate labels to be automatically added (using a GitHub Action) to new issues based on matches for particular MDN URL pathnames/slugs found anywhere in the issue descriptions. * Make this only affect labels for new issues (type=opened), not existing issues Co-authored-by: Schalk Neethling <[email protected]>
- Loading branch information
1 parent
496f745
commit 3ade390
Showing
2 changed files
with
64 additions
and
0 deletions.
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,50 @@ | ||
Content:Accessibility: | ||
- '/docs/Web/Accessibility' | ||
Content:CSS: | ||
- '/docs/Web/CSS' | ||
Content:Events: | ||
- '/docs/Web/Events' | ||
Content:Glossary: | ||
- '/docs/Glossary' | ||
Content:HTML: | ||
- '/docs/Web/HTML' | ||
Content:HTTP: | ||
- '/docs/Web/HTTP' | ||
Content:JS: | ||
- '/docs/Web/JavaScript' | ||
Content:Learn: | ||
- '/docs/Learn/(Common|Front|Getting|Learning|Performance)' | ||
Content:Learn:Accessibility: | ||
- '/docs/Learn/Accessibility' | ||
Content:Learn:Client-side: | ||
- '/docs/Learn/Tools_and_testing/(Client-side|Understanding_client-side)' | ||
Content:Learn:Cross-Browser-Testing: | ||
- '/docs/Learn/Tools_and_testing/Cross_browser_testing' | ||
Content:Learn:CSS: | ||
- '/docs/Learn/CSS' | ||
Content:Learn:Django: | ||
- '/docs/Learn/Server-side/Django' | ||
Content:Learn:Forms: | ||
- '/docs/Learn/Forms' | ||
Content:Learn:GitHub: | ||
- '/docs/Learn/Tools_and_testing/GitHub' | ||
Content:Learn:HTML: | ||
- '/docs/Learn/HTML' | ||
Content:Learn:JavaScript: | ||
- '/docs/Learn/JavaScript' | ||
Content:Manifest: | ||
- '/docs/Web/Manifest' | ||
Content:Performance: | ||
- '/docs/Web/Performance' | ||
Content:Security: | ||
- '/docs/Web/Security' | ||
Content:SVG: | ||
- '/docs/Web/SVG' | ||
Content:wasm: | ||
- '/docs/WebAssembly' | ||
Content:WebAPI: | ||
- '/docs/Web/API' | ||
Content:WebDriver: | ||
- '/docs/Web/WebDriver' | ||
Content:WebExt: | ||
- '/docs/Mozilla/Add-ons' |
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,14 @@ | ||
name: "Label issues by MDN URL or other regex match in issue description" | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/issue-regex-labeler.yml | ||
enable-versioned-regex: 0 |