From 69591eba8333785da072768fa3da2554ea369526 Mon Sep 17 00:00:00 2001 From: Suhani Date: Thu, 14 May 2026 19:40:54 +0530 Subject: [PATCH 1/6] test auto labeler Signed-off-by: Suhani --- .github/labeler.yml | 57 ++++++++++++++++++++++++++++++++ .github/test.yml | 1 + .github/workflows/pr-labeler.yml | 21 ++++++++++++ src/content/blog/test.md | 1 + src/content/docs/test.md | 1 + 5 files changed, 81 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/test.yml create mode 100644 .github/workflows/pr-labeler.yml create mode 100644 src/content/blog/test.md create mode 100644 src/content/docs/test.md diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..418022378 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,57 @@ +docs: + - changed-files: + - any-glob-to-any-file: + - 'src/content/docs/**/*.{md,mdx}' + - 'content/**/*.{md,mdx}' + +blog: + - changed-files: + - any-glob-to-any-file: + - 'src/content/blog/**/*' + +tutorial: + - changed-files: + - any-glob-to-any-file: + - 'src/content/docs/docs/guides/**/*.{md,mdx}' + +reference: + - changed-files: + - any-glob-to-any-file: + - 'src/content/docs/docs/reference/**/*.{md,mdx}' + - 'src/content/docs/docs/crds/**/*.{md,mdx}' + - 'src/content/docs/docs/kyverno-cli/reference/**/*.{md,mdx}' + - 'src/content/policies/**/*.{md,mdx}' + +website: + - changed-files: + - any-glob-to-any-file: + - 'src/**/*.{css,js,jsx,ts,tsx}' + - 'public/**/*' + +navigation: + - changed-files: + - any-glob-to-any-file: + - 'astro.config.mjs' + - 'src/content.config.ts' + - 'src/constants/index.js' + - 'src/components/TopNav.jsx' + - 'src/components/TopNavLinks.jsx' + - 'src/components/BottomNavLinks.jsx' + - 'src/components/BottomLinkLists.jsx' + - 'src/components/PageSidebar.astro' + +config: + - changed-files: + - any-glob-to-any-file: + - '.github/**/*' + - '.editorconfig' + - '.node-version' + - '.prettierrc' + - '.prettierignore' + - 'astro.config.mjs' + - 'markdoc.config.mjs' + - 'netlify.toml' + - 'package.json' + - 'package-lock.json' + - 'tsconfig.json' + - 'lychee.toml' diff --git a/.github/test.yml b/.github/test.yml new file mode 100644 index 000000000..8196f77b5 --- /dev/null +++ b/.github/test.yml @@ -0,0 +1 @@ +'# test' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 000000000..7c4b96813 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,21 @@ +name: PR Labeler + +on: + pull_request: + types: + - opened + - reopened + - synchronize + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - name: Apply labels + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/content/blog/test.md b/src/content/blog/test.md new file mode 100644 index 000000000..b4a5edc85 --- /dev/null +++ b/src/content/blog/test.md @@ -0,0 +1 @@ +"# test blog" diff --git a/src/content/docs/test.md b/src/content/docs/test.md new file mode 100644 index 000000000..63aef85c0 --- /dev/null +++ b/src/content/docs/test.md @@ -0,0 +1 @@ +"# test doc" From e804609d63f9649de454d947e225bc2becf7c939 Mon Sep 17 00:00:00 2001 From: Suhani Date: Thu, 14 May 2026 20:42:40 +0530 Subject: [PATCH 2/6] test: full label coverage matrix Signed-off-by: Suhani --- .github/labeler.yml | 75 +++++++++++++--------- .github/workflows/pr-labeler.yml | 2 +- .github/workflows/test.yml | 13 ++++ package.json | 2 +- src/components/Button.jsx | 2 +- src/content/blog/test/post.md | 3 + src/content/docs/test/test.md | 1 + src/content/docs/test/webhook.md | 1 + src/design-tokens.js | 2 +- src/utils/src/content/docs/test/webhook.md | 1 + 10 files changed, 66 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 src/content/blog/test/post.md create mode 100644 src/content/docs/test/test.md create mode 100644 src/content/docs/test/webhook.md create mode 100644 src/utils/src/content/docs/test/webhook.md diff --git a/.github/labeler.yml b/.github/labeler.yml index 418022378..a1a970912 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,57 +1,68 @@ -docs: +documentation: - changed-files: - any-glob-to-any-file: - 'src/content/docs/**/*.{md,mdx}' - - 'content/**/*.{md,mdx}' + - 'src/content/policies/**/*.md' + - 'content/**/*.md' + - 'README.md' + - 'CONTRIBUTING.md' + - 'DEVELOPMENT.md' + - 'OWNERS.md' blog: - changed-files: - any-glob-to-any-file: - 'src/content/blog/**/*' -tutorial: +website-redesign: - changed-files: - any-glob-to-any-file: - - 'src/content/docs/docs/guides/**/*.{md,mdx}' + - 'src/components/**/*.{astro,css,js,jsx,ts,tsx}' + - 'src/layouts/**/*.astro' + - 'src/sections/**/*.{astro,css,js,jsx,ts,tsx}' + - 'src/styles/**/*.css' + - 'public/assets/**/*' -reference: +github_actions: - changed-files: - any-glob-to-any-file: - - 'src/content/docs/docs/reference/**/*.{md,mdx}' - - 'src/content/docs/docs/crds/**/*.{md,mdx}' - - 'src/content/docs/docs/kyverno-cli/reference/**/*.{md,mdx}' - - 'src/content/policies/**/*.{md,mdx}' + - '.github/workflows/**/*.{yml,yaml}' + - '.github/actions/**/*.{yml,yaml}' -website: +dependencies: - changed-files: - any-glob-to-any-file: - - 'src/**/*.{css,js,jsx,ts,tsx}' - - 'public/**/*' + - 'package.json' + - 'package-lock.json' + - '.github/dependabot.yml' -navigation: +config: - changed-files: - any-glob-to-any-file: - 'astro.config.mjs' + - 'markdoc.config.mjs' - 'src/content.config.ts' - - 'src/constants/index.js' - - 'src/components/TopNav.jsx' - - 'src/components/TopNavLinks.jsx' - - 'src/components/BottomNavLinks.jsx' - - 'src/components/BottomLinkLists.jsx' - - 'src/components/PageSidebar.astro' -config: +javascript: - changed-files: - any-glob-to-any-file: - - '.github/**/*' - - '.editorconfig' - - '.node-version' - - '.prettierrc' - - '.prettierignore' - - 'astro.config.mjs' - - 'markdoc.config.mjs' - - 'netlify.toml' - - 'package.json' - - 'package-lock.json' - - 'tsconfig.json' - - 'lychee.toml' + - 'src/constants/**/*.{js,ts}' + - 'src/hooks/**/*.{js,jsx,ts,tsx}' + - 'src/utils/**/*.{js,ts}' + - 'scripts/**/*.{js,ts,mjs,cjs}' + +go: + - changed-files: + - any-glob-to-any-file: + - '**/*.go' + - 'go.mod' + - 'go.sum' + +webhook: + - changed-files: + - any-glob-to-any-file: + - 'src/content/docs/**/admission-controllers.md' + - 'src/content/docs/**/validating-policy.mdx' + - 'src/content/docs/**/mutating-policy.mdx' + - 'src/content/docs/**/image-validating-policy.mdx' + - 'src/content/policies/**/admission-webhooks/**/*' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 7c4b96813..5b5509cac 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -16,6 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Apply labels - uses: actions/labeler@v5 + uses: actions/labeler@v6 with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..7415e3203 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,13 @@ +name: Test Workflow + +on: + push: + branches: + - test-labeler + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Print message + run: echo "Testing labeler workflow" diff --git a/package.json b/package.json index 9b8f86064..a41f9ba70 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "website", + "name": "websit", "type": "module", "version": "0.0.1", "engines": { diff --git a/src/components/Button.jsx b/src/components/Button.jsx index bddb2cf2c..e2d05ef19 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -11,7 +11,7 @@ export const Button = ({ const variantStyles = { primary: - 'bg-primary-100 text-white hover:bg-primary-75 hover:scale-105 active:scale-95', + 'bg-primary-200 text-white hover:bg-primary-75 hover:scale-105 active:scale-95', secondary: 'border border-primary-100 text-theme-primary hover:border-primary-100 hover:bg-primary-100/10 hover:scale-105 active:scale-95', accent: diff --git a/src/content/blog/test/post.md b/src/content/blog/test/post.md new file mode 100644 index 000000000..3f2701c4f --- /dev/null +++ b/src/content/blog/test/post.md @@ -0,0 +1,3 @@ +--- + +title: "Label Test Blog" diff --git a/src/content/docs/test/test.md b/src/content/docs/test/test.md new file mode 100644 index 000000000..5cf9debcd --- /dev/null +++ b/src/content/docs/test/test.md @@ -0,0 +1 @@ +# labeler test diff --git a/src/content/docs/test/webhook.md b/src/content/docs/test/webhook.md new file mode 100644 index 000000000..ae8df7d47 --- /dev/null +++ b/src/content/docs/test/webhook.md @@ -0,0 +1 @@ +# webhook test diff --git a/src/design-tokens.js b/src/design-tokens.js index 0fc8938cb..e49d61366 100644 --- a/src/design-tokens.js +++ b/src/design-tokens.js @@ -10,7 +10,7 @@ export const spacing = { xs: '0.5rem', // 8px sm: '1rem', // 16px md: '1.5rem', // 24px - lg: '2rem', // 32px + lg: '3rem', // 32px xl: '3rem', // 48px '2xl': '4rem', // 64px '3xl': '5rem', // 80px diff --git a/src/utils/src/content/docs/test/webhook.md b/src/utils/src/content/docs/test/webhook.md new file mode 100644 index 000000000..ae8df7d47 --- /dev/null +++ b/src/utils/src/content/docs/test/webhook.md @@ -0,0 +1 @@ +# webhook test From 41ec955b8363f34c2951ccac99b22a315919bf34 Mon Sep 17 00:00:00 2001 From: Suhani Date: Thu, 14 May 2026 20:52:00 +0530 Subject: [PATCH 3/6] test: full label coverage matrix2 Signed-off-by: Suhani --- src/content.config.ts | 1 + src/content/blog/test.md | 2 +- src/content/docs/test/test.md | 2 +- test.go | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 test.go diff --git a/src/content.config.ts b/src/content.config.ts index 2cbcc9262..ccc75e37b 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -12,6 +12,7 @@ const policiesCollection = defineCollection({ title: z.string(), category: z.enum([ 'verifyImages', + 'validate', 'mutate', 'generate', diff --git a/src/content/blog/test.md b/src/content/blog/test.md index b4a5edc85..f83dfb477 100644 --- a/src/content/blog/test.md +++ b/src/content/blog/test.md @@ -1 +1 @@ -"# test blog" +"# est blog" diff --git a/src/content/docs/test/test.md b/src/content/docs/test/test.md index 5cf9debcd..810062a95 100644 --- a/src/content/docs/test/test.md +++ b/src/content/docs/test/test.md @@ -1 +1 @@ -# labeler test +# labeler test2 diff --git a/test.go b/test.go new file mode 100644 index 000000000..173eacbfd --- /dev/null +++ b/test.go @@ -0,0 +1,2 @@ +package main +func main() {} From 94caa21749c538ff7adec6a4e58a0c30d54d2e58 Mon Sep 17 00:00:00 2001 From: Suhani Date: Thu, 14 May 2026 21:28:11 +0530 Subject: [PATCH 4/6] changes in labeler.yml --- .github/labeler.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index a1a970912..8fc6cba0a 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -42,6 +42,9 @@ config: - 'astro.config.mjs' - 'markdoc.config.mjs' - 'src/content.config.ts' + - 'netlify.toml' + - 'tsconfig.json' + - 'lychee.toml' javascript: - changed-files: From 32c345ce0ec884e993073c882194a458ba325092 Mon Sep 17 00:00:00 2001 From: Suhani Date: Thu, 14 May 2026 21:48:15 +0530 Subject: [PATCH 5/6] add PR labeler workflow --- .github/workflows/pr-labeler.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 5b5509cac..9d541892c 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -15,7 +15,12 @@ jobs: label: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.1 + - name: Apply labels - uses: actions/labeler@v6 + uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: '.github/labels.yml' + sync-labels: true From 56f974bdcb9b747daa4bb3cfd77f2bcbf34dec98 Mon Sep 17 00:00:00 2001 From: Suhani Date: Thu, 14 May 2026 21:49:55 +0530 Subject: [PATCH 6/6] add PR labeler workflow2 --- .github/workflows/pr-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 9d541892c..49bde41d6 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -22,5 +22,5 @@ jobs: uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: '.github/labels.yml' + configuration-path: '.github/labeler.yml' sync-labels: true