diff --git a/.changeset/green-ducks-sing.md b/.changeset/green-ducks-sing.md new file mode 100644 index 0000000..ee9dc22 --- /dev/null +++ b/.changeset/green-ducks-sing.md @@ -0,0 +1,5 @@ +--- +"template-files": patch +--- + +Make labeler configuration more robust diff --git a/.github/labeler.yaml b/.github/labeler.yaml index a6fa2c4..3f0fcad 100644 --- a/.github/labeler.yaml +++ b/.github/labeler.yaml @@ -14,20 +14,19 @@ "✒️ documentation": - changed-files: - - any-glob-to-any-file: "**/README.md" + - any-glob-to-any-file: ["**/docs/**", "**/README.md"] "🌏 i18n": - changed-files: - - all-globs-to-any-file: ["**/docs/**", "!**/docs/en/**"] - -"🚀 manifest": - - changed-files: - - any-glob-to-any-file: "manifest*/**" + - all-globs-to-any-file: + - "**/docs/!(en)/**" + - "**/docs/[a-z][a-z]/**" + - any-glob-to-any-file: + - "**/docs/[a-z][a-z]-[a-z][a-z]/**" "📦 package": - changed-files: - - any-glob-to-any-file: "**/packages/**" - - any-glob-to-any-file: "**/package.json" + - any-glob-to-any-file: ["**/packages/**", "**/package.json"] "🏯 styles": - changed-files: diff --git a/template-files/.github/workflows/labeler.yaml b/template-files/.github/workflows/labeler.yaml index ebeba99..c55e724 100644 --- a/template-files/.github/workflows/labeler.yaml +++ b/template-files/.github/workflows/labeler.yaml @@ -32,6 +32,7 @@ jobs: gh label delete "invalid" --yes || true gh label delete "question" --yes || true gh label delete "wontfix" --yes || true + gh label delete "🚀 manifest" --yes || true gh label create "🚨 action" --description "Changes in GitHub workflows or actions" --color "A75AD5" --force gh label create "🤖 bot" --description "Automatically generated pull request" --color "0075CA" --force @@ -45,7 +46,6 @@ jobs: gh label create "🆘 help wanted" --description "Extra attention is needed" --color "BFD4F2" --force gh label create "🌏 i18n" --description "Updates to internationalized docs, excluding English" --color "006B75" --force gh label create "👀 invalid" --description "This doesn't seem right" --color "E4E669" --force - gh label create "🚀 manifest" --description "Manifest-related changes" --color "96D3D7" --force gh label create "📦 package" --description "Updates in package structure or package.json" --color "F34A37" --force gh label create "❓ question" --description "Further information is requested" --color "D876E3" --force gh label create "🏯 styles" --description "Stylesheets or design updates" --color "550F5A" --force