diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..8fc6cba0a --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,71 @@ +documentation: + - changed-files: + - any-glob-to-any-file: + - 'src/content/docs/**/*.{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/**/*' + +website-redesign: + - changed-files: + - any-glob-to-any-file: + - 'src/components/**/*.{astro,css,js,jsx,ts,tsx}' + - 'src/layouts/**/*.astro' + - 'src/sections/**/*.{astro,css,js,jsx,ts,tsx}' + - 'src/styles/**/*.css' + - 'public/assets/**/*' + +github_actions: + - changed-files: + - any-glob-to-any-file: + - '.github/workflows/**/*.{yml,yaml}' + - '.github/actions/**/*.{yml,yaml}' + +dependencies: + - changed-files: + - any-glob-to-any-file: + - 'package.json' + - 'package-lock.json' + - '.github/dependabot.yml' + +config: + - changed-files: + - any-glob-to-any-file: + - 'astro.config.mjs' + - 'markdoc.config.mjs' + - 'src/content.config.ts' + - 'netlify.toml' + - 'tsconfig.json' + - 'lychee.toml' + +javascript: + - changed-files: + - any-glob-to-any-file: + - '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/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..49bde41d6 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,26 @@ +name: PR Labeler + +on: + pull_request: + types: + - opened + - reopened + - synchronize + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.1 + + - name: Apply labels + uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: '.github/labeler.yml' + sync-labels: true 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.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 new file mode 100644 index 000000000..f83dfb477 --- /dev/null +++ b/src/content/blog/test.md @@ -0,0 +1 @@ +"# est blog" 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.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" diff --git a/src/content/docs/test/test.md b/src/content/docs/test/test.md new file mode 100644 index 000000000..810062a95 --- /dev/null +++ b/src/content/docs/test/test.md @@ -0,0 +1 @@ +# labeler test2 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 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() {}