diff --git a/.github/labeler.yml b/.github/labeler.yml index 9be34fc852f4f6a..0627f70b2cfc4f0 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,106 +1,180 @@ +# This file is used by .github/workflows/pr-labeler.yml to label pull requests based on the files changed in the PR. +# Object matching syntax: https://github.com/actions/labeler/blob/main/README.md#match-object system: - - package.json - - yarn.lock - - .github/**/* - - .husky/**/* - - .vscode/**/* - - .* - - scripts/**/* - - tests/**/* - - jest.config.json - - front-matter-config.json + - changed-files: + - any-glob-to-any-file: + - package.json + - yarn.lock + - .github/** + - .husky/** + - .vscode/** + - .* + - scripts/** + - tests/** + - jest.config.json + - front-matter-config.json Content:Accessibility: - - files/en-us/web/accessibility/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/accessibility/** Content:CSS: - - files/en-us/web/css/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/css/** Content:Events: - - files/en-us/web/events/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/events/** Content:Firefox: - - files/en-us/mozilla/firefox/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/mozilla/firefox/** Content:Games: - - files/en-us/games/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/games/** Content:Glossary: - - files/en-us/glossary/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/glossary/** Content:Guide: - - files/en-us/web/guide/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/guide/** Content:HTML: - - files/en-us/web/html/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/html/** Content:HTTP: - - files/en-us/web/http/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/http/** Content:JS: - - files/en-us/web/javascript/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/javascript/** Content:Learn: - - any: - - files/en-us/learn/**/* - - "!files/en-us/learn/accessibility/**/*" - - "!files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**/*" - - "!files/en-us/learn/tools_and_testing/understanding_client-side_tools/**/*" - - "!files/en-us/learn/tools_and_testing/cross_browser_testing/**/*" - - "!files/en-us/learn/css/**/*" - - "!files/en-us/learn/server-side/django/**/*" - - "!files/en-us/learn/server-side/express_nodejs/**/*" - - "!files/en-us/learn/forms/**/*" - - "!files/en-us/learn/tools_and_testing/github/**/*" - - "!files/en-us/learn/html/**/*" - - "!files/en-us/learn/javascript/**/*" - - files/en-us/web/tutorials/**/* + - changed-files: + - all-globs-to-any-file: + - files/en-us/learn/** + - "!files/en-us/learn/accessibility/**" + - "!files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**" + - "!files/en-us/learn/tools_and_testing/understanding_client-side_tools/**" + - "!files/en-us/learn/tools_and_testing/cross_browser_testing/**" + - "!files/en-us/learn/css/**" + - "!files/en-us/learn/server-side/django/**" + - "!files/en-us/learn/server-side/express_nodejs/**" + - "!files/en-us/learn/forms/**" + - "!files/en-us/learn/tools_and_testing/github/**" + - "!files/en-us/learn/html/**" + - "!files/en-us/learn/javascript/**" + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/tutorials/** Content:Learn:Accessibility: - - files/en-us/learn/accessibility/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/accessibility/** Content:Learn:Client-side: - - files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**/* - - files/en-us/learn/tools_and_testing/understanding_client-side_tools/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/** + - files/en-us/learn/tools_and_testing/understanding_client-side_tools/** Content:Learn:Cross-Browser-Testing: - - files/en-us/learn/tools_and_testing/cross_browser_testing/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/tools_and_testing/cross_browser_testing/** Content:Learn:CSS: - - files/en-us/learn/css/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/css/** Content:Learn:Django: - - files/en-us/learn/server-side/django/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/server-side/django/** Content:Learn:Express: - - files/en-us/learn/server-side/express_nodejs/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/server-side/express_nodejs/** Content:Learn:Forms: - - files/en-us/learn/forms/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/forms/** Content:Learn:GitHub: - - files/en-us/learn/tools_and_testing/github/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/tools_and_testing/github/** Content:Learn:HTML: - - files/en-us/learn/html/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/html/** Content:Learn:JavaScript: - - files/en-us/learn/javascript/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/learn/javascript/** Content:Manifest: - - files/en-us/web/manifest/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/manifest/** Content:MathML: - - files/en-us/web/mathml/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/mathml/** Content:Media: - - files/en-us/web/media/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/media/** Content:Meta: - - files/en-us/mdn/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/mdn/** Content:Performance: - - files/en-us/web/performance/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/performance/** Content:PWA: - - files/en-us/web/progressive_web_apps/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/progressive_web_apps/** Content:Security: - - files/en-us/web/security/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/security/** Content:SVG: - - files/en-us/web/svg/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/svg/** Content:wasm: - - files/en-us/webassembly/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/webassembly/** Content:WebAPI: - - files/en-us/web/api/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/api/** Content:WebDriver: - - files/en-us/web/webdriver/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/web/webdriver/** Content:WebExt: - - files/en-us/mozilla/add-ons/webextensions/**/* + - changed-files: + - any-glob-to-any-file: + - files/en-us/mozilla/add-ons/webextensions/** Content:Other: - - any: - - files/en-us/mozilla/**/* - - "!files/en-us/mozilla/add-ons/webextensions/**/*" - - "!files/en-us/mozilla/firefox/**/*" - - files/en-us/related/**/* - - files/en-us/web/demos/**/* - - files/en-us/web/exslt/**/* - - files/en-us/web/opensearch/**/* - - files/en-us/web/privacy/**/* - - files/en-us/web/text_fragments/**/* - - files/en-us/web/xml/**/* - - files/en-us/web/xpath/**/* - - files/en-us/web/xslt/**/* + - changed-files: + - all-globs-to-any-file: + - files/en-us/mozilla/** + - "!files/en-us/mozilla/add-ons/webextensions/**" + - "!files/en-us/mozilla/firefox/**" + - changed-files: + - any-glob-to-any-file: + - files/en-us/related/** + - files/en-us/web/demos/** + - files/en-us/web/exslt/** + - files/en-us/web/opensearch/** + - files/en-us/web/privacy/** + - files/en-us/web/text_fragments/** + - files/en-us/web/xml/** + - files/en-us/web/xpath/** + - files/en-us/web/xslt/** diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 204899d098e0e1a..342e1d366095189 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -16,9 +16,10 @@ jobs: name: Label by path runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true # Docs: https://github.com/CodelyTV/pr-size-labeler label-by-size: