From edd95b75f2fee3e530944b2663a533ca11b68bda Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Mon, 11 Dec 2023 19:52:45 +0200 Subject: [PATCH] ci: update labeler config to match latest action version (#3533) * ci: update labeler config to match latest action version * dev * dev * dev * dev * dev * dev * dev * dev * dev * dev --- .github/labeler.yml | 130 ++++++++++++++++++++++----------- .github/workflows/label-pr.yml | 1 + 2 files changed, 87 insertions(+), 44 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7b12e033220ab..46d637d7b5b2e 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,53 +1,95 @@ -themes: themes/index.js -doc-translation: docs/* +themes: + - changed-files: + - any-glob-to-any-file: + - themes/index.js + +doc-translation: + - changed-files: + - any-glob-to-any-file: + - docs/* + card-i18n: - - src/translations.js - - src/common/I18n.js + - changed-files: + - any-glob-to-any-file: + - src/translations.js + - src/common/I18n.js + documentation: - - readme.md - - CONTRIBUTING.md - - CODE_OF_CONDUCT.md - - SECURITY.md + - changed-files: + - any-glob-to-any-file: + - readme.md + - CONTRIBUTING.md + - CODE_OF_CONDUCT.md + - SECURITY.md + dependencies: - - package.json - - package-lock.json + - changed-files: + - any-glob-to-any-file: + - package.json + - package-lock.json + lang-card: - - api/top-langs.js - - src/cards/top-languages-card.js - - src/fetchers/top-languages-fetcher.js - - tests/fetchTopLanguages.test.js - - tests/renderTopLanguagesCard.test.js - - tests/top-langs.test.js + - changed-files: + - any-glob-to-any-file: + - api/top-langs.js + - src/cards/top-languages-card.js + - src/fetchers/top-languages-fetcher.js + - tests/fetchTopLanguages.test.js + - tests/renderTopLanguagesCard.test.js + - tests/top-langs.test.js + repo-card: - - api/pin.js - - src/cards/repo-card.js - - src/fetchers/repo-fetcher.js - - tests/fetchRepo.test.js - - tests/renderRepoCard.test.js - - tests/pin.test.js + - changed-files: + - any-glob-to-any-file: + - api/pin.js + - src/cards/repo-card.js + - src/fetchers/repo-fetcher.js + - tests/fetchRepo.test.js + - tests/renderRepoCard.test.js + - tests/pin.test.js + stats-card: - - api/index.js - - src/cards/stats-card.js - - src/fetchers/stats-fetcher.js - - tests/fetchStats.test.js - - tests/renderStatsCard.test.js - - tests/api.test.js + - changed-files: + - any-glob-to-any-file: + - api/index.js + - src/cards/stats-card.js + - src/fetchers/stats-fetcher.js + - tests/fetchStats.test.js + - tests/renderStatsCard.test.js + - tests/api.test.js + wakatime-card: - - api/wakatime.js - - src/cards/wakatime-card.js - - src/fetchers/wakatime-fetcher.js - - tests/fetchWakatime.test.js - - tests/renderWakatimeCard.test.js - - tests/wakatime.test.js + - changed-files: + - any-glob-to-any-file: + - api/wakatime.js + - src/cards/wakatime-card.js + - src/fetchers/wakatime-fetcher.js + - tests/fetchWakatime.test.js + - tests/renderWakatimeCard.test.js + - tests/wakatime.test.js + gist-card: - - api/gist.js - - src/cards/gist-card.js - - src/fetchers/gist-fetcher.js - - tests/fetchGist.test.js - - tests/renderGistCard.test.js - - tests/gist.test.js -ranks: src/calculateRank.js + - changed-files: + - any-glob-to-any-file: + - api/gist.js + - src/cards/gist-card.js + - src/fetchers/gist-fetcher.js + - tests/fetchGist.test.js + - tests/renderGistCard.test.js + - tests/gist.test.js + +ranks: + - changed-files: + - any-glob-to-any-file: + - src/calculateRank.js + ci: - - .github/workflows/* - - scripts/* -infrastructure: .eslintrc.json + - changed-files: + - any-glob-to-any-file: + - .github/workflows/* + - scripts/* + +infrastructure: + - changed-files: + - any-glob-to-any-file: + - .eslintrc.json diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 56a2dce659af2..5318b304d3a36 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -24,3 +24,4 @@ jobs: - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true