From 963d52c672866bb6221660dec6d582101871bd5c Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 21:59:37 +0200 Subject: [PATCH 01/11] ci: update labeler config to match latest action version --- .github/labeler.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7b12e033220ab..a07e09fa6d54d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,8 @@ -themes: themes/index.js -doc-translation: docs/* +themes: + - themes/index.js +doc-translation: + - changed-files: + - any-glob-to-any-file: docs/* card-i18n: - src/translations.js - src/common/I18n.js @@ -46,8 +49,10 @@ gist-card: - tests/fetchGist.test.js - tests/renderGistCard.test.js - tests/gist.test.js -ranks: src/calculateRank.js +ranks: + - src/calculateRank.js ci: - .github/workflows/* - scripts/* -infrastructure: .eslintrc.json +infrastructure: + - .eslintrc.json From 7d8afc3f7dc00ce5d049a57eb2afd2816c60fa54 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:04:04 +0200 Subject: [PATCH 02/11] dev --- .github/labeler.yml | 109 +++++++++++++++++++++++++++----------------- 1 file changed, 66 insertions(+), 43 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index a07e09fa6d54d..c891a11361f6b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,58 +1,81 @@ themes: - - themes/index.js + - 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 + - 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: - - src/calculateRank.js + - changed-files: + - any-glob-to-any-file: + - src/calculateRank.js ci: - - .github/workflows/* - - scripts/* + - changed-files: + - any-glob-to-any-file: + - .github/workflows/* + - scripts/* infrastructure: - - .eslintrc.json + - changed-files: + - any-glob-to-any-file: + - .eslintrc.json From b7869ff6900847b64bf8d480ef31b1472a4fbdba Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:07:22 +0200 Subject: [PATCH 03/11] dev --- .github/labeler.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index c891a11361f6b..900500dadf90b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,14 +1,17 @@ themes: - changed-files: - any-glob-to-any-file: themes/index.js + doc-translation: - changed-files: - any-glob-to-any-file: docs/* + card-i18n: - changed-files: - any-glob-to-any-file: - src/translations.js - src/common/I18n.js + documentation: - changed-files: - any-glob-to-any-file: @@ -16,11 +19,13 @@ documentation: - CONTRIBUTING.md - CODE_OF_CONDUCT.md - SECURITY.md + dependencies: - changed-files: - any-glob-to-any-file: - package.json - package-lock.json + lang-card: - changed-files: - any-glob-to-any-file: @@ -30,6 +35,7 @@ lang-card: - tests/fetchTopLanguages.test.js - tests/renderTopLanguagesCard.test.js - tests/top-langs.test.js + repo-card: - changed-files: - any-glob-to-any-file: @@ -39,6 +45,7 @@ repo-card: - tests/fetchRepo.test.js - tests/renderRepoCard.test.js - tests/pin.test.js + stats-card: - changed-files: - any-glob-to-any-file: @@ -48,6 +55,7 @@ stats-card: - tests/fetchStats.test.js - tests/renderStatsCard.test.js - tests/api.test.js + wakatime-card: - changed-files: - any-glob-to-any-file: @@ -57,6 +65,7 @@ wakatime-card: - tests/fetchWakatime.test.js - tests/renderWakatimeCard.test.js - tests/wakatime.test.js + gist-card: - changed-files: - any-glob-to-any-file: @@ -66,15 +75,18 @@ gist-card: - tests/fetchGist.test.js - tests/renderGistCard.test.js - tests/gist.test.js + ranks: - changed-files: - any-glob-to-any-file: - src/calculateRank.js + ci: - changed-files: - any-glob-to-any-file: - .github/workflows/* - scripts/* + infrastructure: - changed-files: - any-glob-to-any-file: From f48e3b7032d32902e1322bdcd1833b8f4f02de87 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:11:39 +0200 Subject: [PATCH 04/11] dev --- .github/labeler.yml | 125 ++++++++++++++++++++------------------------ 1 file changed, 57 insertions(+), 68 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 900500dadf90b..149bd15b1ff37 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,93 +1,82 @@ themes: - - changed-files: - - any-glob-to-any-file: themes/index.js + - any: + - themes/index.js doc-translation: - - changed-files: - - any-glob-to-any-file: docs/* + - any: + - docs/* card-i18n: - - changed-files: - - any-glob-to-any-file: - - src/translations.js - - src/common/I18n.js + - any: + - src/translations.js + - src/common/I18n.js documentation: - - changed-files: - - any-glob-to-any-file: - - readme.md - - CONTRIBUTING.md - - CODE_OF_CONDUCT.md - - SECURITY.md + - any: + - readme.md + - CONTRIBUTING.md + - CODE_OF_CONDUCT.md + - SECURITY.md dependencies: - - changed-files: - - any-glob-to-any-file: - - package.json - - package-lock.json + - any: + - package.json + - package-lock.json lang-card: - - 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 + - any: + - 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: - - 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 + - any: + - 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: - - 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 + - any: + - 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: - - 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 + - any: + - 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: - - 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 + - any: + - 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 + - any: + - src/calculateRank.js ci: - - changed-files: - - any-glob-to-any-file: - - .github/workflows/* - - scripts/* + - any: + - .github/workflows/* + - scripts/* infrastructure: - - changed-files: - - any-glob-to-any-file: - - .eslintrc.json + - any: + - .eslintrc.json From e7104b1f84571f177aaeb6f17353f7a707e1d9e9 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:25:03 +0200 Subject: [PATCH 05/11] dev --- .github/labeler.yml | 126 +++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 65 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 149bd15b1ff37..e66c032eacca2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,82 +1,78 @@ -themes: - - any: - - themes/index.js +"themes": + - any: ["themes/index.js"] -doc-translation: - - any: - - docs/* +"doc-translation": + - any: ["docs/*"] -card-i18n: - - any: - - src/translations.js - - src/common/I18n.js +"card-i18n": + - any: ["src/translations.js", "src/common/I18n.js"] -documentation: - - any: - - readme.md - - CONTRIBUTING.md - - CODE_OF_CONDUCT.md - - SECURITY.md +"documentation": + - any: ["readme.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "SECURITY.md"] -dependencies: - - any: - - package.json - - package-lock.json +"dependencies": + - any: ["package.json", "package-lock.json"] -lang-card: +"lang-card": - any: - - 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 + [ + "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: +"repo-card": - any: - - 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 + [ + "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: +"stats-card": - any: - - 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 + [ + "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: +"wakatime-card": - any: - - 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 + [ + "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: +"gist-card": - any: - - 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 + [ + "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: - - any: - - src/calculateRank.js +"ranks": + - any: ["src/calculateRank.js"] -ci: - - any: - - .github/workflows/* - - scripts/* +"ci": + - any: [".github/workflows/*", "scripts/*"] -infrastructure: - - any: - - .eslintrc.json +"infrastructure": + - any: [".eslintrc.json"] From ba16975539e2476c3796a3cd58d914d418450b98 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:28:11 +0200 Subject: [PATCH 06/11] dev --- .github/labeler.yml | 108 ++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 60 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index e66c032eacca2..163ed7eb2a8fa 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,78 +1,66 @@ -"themes": - - any: ["themes/index.js"] +"themes": ["themes/index.js"] -"doc-translation": - - any: ["docs/*"] +"doc-translation": ["docs/*"] -"card-i18n": - - any: ["src/translations.js", "src/common/I18n.js"] +"card-i18n": ["src/translations.js", "src/common/I18n.js"] "documentation": - - any: ["readme.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "SECURITY.md"] + ["readme.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "SECURITY.md"] -"dependencies": - - any: ["package.json", "package-lock.json"] +"dependencies": ["package.json", "package-lock.json"] "lang-card": - - any: - [ - "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", - ] + [ + "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": - - any: - [ - "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", - ] + [ + "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": - - any: - [ - "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", - ] + [ + "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": - - any: - [ - "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", - ] + [ + "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": - - any: - [ - "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", - ] + [ + "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": - - any: ["src/calculateRank.js"] +"ranks": ["src/calculateRank.js"] -"ci": - - any: [".github/workflows/*", "scripts/*"] +"ci": [".github/workflows/*", "scripts/*"] -"infrastructure": - - any: [".eslintrc.json"] +"infrastructure": [".eslintrc.json"] From e8e2fea6f212364522eabc360716b7a541750d0d Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:37:21 +0200 Subject: [PATCH 07/11] dev --- .github/labeler.yml | 137 +++++++++++++++++++++++++++----------------- 1 file changed, 83 insertions(+), 54 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 163ed7eb2a8fa..14dded10090a3 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,66 +1,95 @@ -"themes": ["themes/index.js"] +themes: + - any: + - changed-files: + - themes/index.js -"doc-translation": ["docs/*"] +doc-translation: + - any: + - changed-files: + - docs/* -"card-i18n": ["src/translations.js", "src/common/I18n.js"] +card-i18n: + - any: + - changed-files: + - src/translations.js + - src/common/I18n.js -"documentation": - ["readme.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "SECURITY.md"] +documentation: + - any: + - changed-files: + - readme.md + - CONTRIBUTING.md + - CODE_OF_CONDUCT.md + - SECURITY.md -"dependencies": ["package.json", "package-lock.json"] +dependencies: + - any: + - changed-files: + - 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", - ] +lang-card: + - any: + - changed-files: + - 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", - ] +repo-card: + - any: + - changed-files: + - 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", - ] +stats-card: + - any: + - changed-files: + - 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", - ] +wakatime-card: + - any: + - changed-files: + - 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", - ] +gist-card: + - any: + - changed-files: + - 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"] +ranks: + - any: + - changed-files: + - src/calculateRank.js -"ci": [".github/workflows/*", "scripts/*"] +ci: + - any: + - changed-files: + - .github/workflows/* + - scripts/* -"infrastructure": [".eslintrc.json"] +infrastructure: + - any: + - changed-files: + - .eslintrc.json From 4c50ce95cc2b3cf591abc9fb20213d75c83f1f81 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:39:28 +0200 Subject: [PATCH 08/11] dev --- .github/workflows/label-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 56a2dce659af2..008b3eed8ec2d 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -21,6 +21,6 @@ jobs: if: github.repository == 'anuraghazra/github-readme-stats' runs-on: ubuntu-latest steps: - - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 + - uses: actions/labeler@1375c42512e0b855687040307d6dcaf403da9a4e # v5.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 55924b9c72e331cd716fa548c6f3b890c8e563bb Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 22:46:40 +0200 Subject: [PATCH 09/11] dev --- .github/labeler.yml | 101 ++++++++++++++------------------- .github/workflows/label-pr.yml | 3 +- 2 files changed, 46 insertions(+), 58 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 14dded10090a3..149bd15b1ff37 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,95 +1,82 @@ themes: - any: - - changed-files: - - themes/index.js + - themes/index.js doc-translation: - any: - - changed-files: - - docs/* + - docs/* card-i18n: - any: - - changed-files: - - src/translations.js - - src/common/I18n.js + - src/translations.js + - src/common/I18n.js documentation: - any: - - changed-files: - - readme.md - - CONTRIBUTING.md - - CODE_OF_CONDUCT.md - - SECURITY.md + - readme.md + - CONTRIBUTING.md + - CODE_OF_CONDUCT.md + - SECURITY.md dependencies: - any: - - changed-files: - - package.json - - package-lock.json + - package.json + - package-lock.json lang-card: - any: - - changed-files: - - 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 + - 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: - any: - - changed-files: - - 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 + - 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: - any: - - changed-files: - - 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 + - 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: - any: - - changed-files: - - 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 + - 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: - any: - - changed-files: - - 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 + - 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: - any: - - changed-files: - - src/calculateRank.js + - src/calculateRank.js ci: - any: - - changed-files: - - .github/workflows/* - - scripts/* + - .github/workflows/* + - scripts/* infrastructure: - any: - - changed-files: - - .eslintrc.json + - .eslintrc.json diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 008b3eed8ec2d..5318b304d3a36 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -21,6 +21,7 @@ jobs: if: github.repository == 'anuraghazra/github-readme-stats' runs-on: ubuntu-latest steps: - - uses: actions/labeler@1375c42512e0b855687040307d6dcaf403da9a4e # v5.0.0 + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true From d8be858e4c6b9e317d1ceb65085a51e0ef162af3 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 23:00:41 +0200 Subject: [PATCH 10/11] dev --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 149bd15b1ff37..d465cc39d94bb 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,6 +1,6 @@ themes: - any: - - themes/index.js + - "themes/index.js" doc-translation: - any: From 0eee06845c68661d98533bcdc9a9608f6df82d46 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 5 Dec 2023 23:12:03 +0200 Subject: [PATCH 11/11] dev --- .github/labeler.yml | 127 ++++++++++++++++++++++++-------------------- 1 file changed, 70 insertions(+), 57 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index d465cc39d94bb..46d637d7b5b2e 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,82 +1,95 @@ themes: - - any: - - "themes/index.js" + - changed-files: + - any-glob-to-any-file: + - themes/index.js doc-translation: - - any: - - docs/* + - changed-files: + - any-glob-to-any-file: + - docs/* card-i18n: - - any: - - src/translations.js - - src/common/I18n.js + - changed-files: + - any-glob-to-any-file: + - src/translations.js + - src/common/I18n.js documentation: - - any: - - 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: - - any: - - package.json - - package-lock.json + - changed-files: + - any-glob-to-any-file: + - package.json + - package-lock.json lang-card: - - any: - - 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: - - any: - - 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: - - any: - - 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: - - any: - - 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: - - any: - - 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 + - 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: - - any: - - src/calculateRank.js + - changed-files: + - any-glob-to-any-file: + - src/calculateRank.js ci: - - any: - - .github/workflows/* - - scripts/* + - changed-files: + - any-glob-to-any-file: + - .github/workflows/* + - scripts/* infrastructure: - - any: - - .eslintrc.json + - changed-files: + - any-glob-to-any-file: + - .eslintrc.json