diff --git a/.github/labeler.yml b/.github/labeler.yml index ff5629625c41ad..4065402dd9caff 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,50 +1,63 @@ -system: - - package.json - - yarn.lock - - .github/**/* - - .husky/**/* - - .vscode/**/* - - .* - - front-matter-config.json +# 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 -l10n-de: - - files/de/**/* +system: + - changed-files: + - any-glob-to-any-file: + - package.json + - yarn.lock + - .github/** + - .husky/** + - .vscode/** + - .* + - front-matter-config.json l10n-es: - - files/es/**/* - - docs/es/**/* - - /.github/ISSUE_TEMPLATE/page-report-es.yml + - changed-files: + - any-glob-to-any-file: + - files/es/** + - docs/es/** + - .github/ISSUE_TEMPLATE/page-report-es.yml l10n-fr: - - files/fr/**/* - - /.github/ISSUE_TEMPLATE/page-report-fr.yml + - changed-files: + - any-glob-to-any-file: + - files/fr/** + - .github/ISSUE_TEMPLATE/page-report-fr.yml l10n-ja: - - files/ja/**/* - - docs/ja/**/* - - /.github/ISSUE_TEMPLATE/page-report-ja.yml + - changed-files: + - any-glob-to-any-file: + - files/ja/** + - docs/ja/** + - .github/ISSUE_TEMPLATE/page-report-ja.yml l10n-ko: - - files/ko/**/* - - docs/ko/**/* - - /.github/ISSUE_TEMPLATE/page-report-ko.yml - -l10n-pl: - - files/pl/**/* + - changed-files: + - any-glob-to-any-file: + - files/ko/** + - docs/ko/** + - .github/ISSUE_TEMPLATE/page-report-ko.yml l10n-pt-br: - - files/pt-br/**/* - - /.github/ISSUE_TEMPLATE/page-report-pt-br.yml + - changed-files: + - any-glob-to-any-file: + - files/pt-br/** + - .github/ISSUE_TEMPLATE/page-report-pt-br.yml l10n-ru: - - files/ru/**/* - - docs/ru/**/* - - /.github/ISSUE_TEMPLATE/page-report-ru.yml + - changed-files: + - any-glob-to-any-file: + - files/ru/** + - docs/ru/** + - .github/ISSUE_TEMPLATE/page-report-ru.yml l10n-zh: - - files/zh-cn/**/* - - files/zh-tw/**/* - - docs/zh-cn/**/* - - docs/zh-tw/**/* - - /.github/ISSUE_TEMPLATE/page-report-zh-cn.yml - - /.github/ISSUE_TEMPLATE/page-report-zh-tw.yml + - changed-files: + - any-glob-to-any-file: + - files/zh-cn/** + - files/zh-tw/** + - docs/zh-cn/** + - docs/zh-tw/** + - .github/ISSUE_TEMPLATE/page-report-zh-cn.yml + - .github/ISSUE_TEMPLATE/page-report-zh-tw.yml diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 38c4557a3a9a2b..6712fa3c54685b 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -8,6 +8,7 @@ jobs: if: github.repository == 'mdn/translated-content' runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true