Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**/*'
1 change: 1 addition & 0 deletions .github/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'# test'
26 changes: 26 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "website",
"name": "websit",
"type": "module",
"version": "0.0.1",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const policiesCollection = defineCollection({
title: z.string(),
category: z.enum([
'verifyImages',

'validate',
'mutate',
'generate',
Expand Down
1 change: 1 addition & 0 deletions src/content/blog/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"# est blog"
3 changes: 3 additions & 0 deletions src/content/blog/test/post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

title: "Label Test Blog"
1 change: 1 addition & 0 deletions src/content/docs/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"# test doc"
1 change: 1 addition & 0 deletions src/content/docs/test/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# labeler test2
1 change: 1 addition & 0 deletions src/content/docs/test/webhook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# webhook test
2 changes: 1 addition & 1 deletion src/design-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/utils/src/content/docs/test/webhook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# webhook test
2 changes: 2 additions & 0 deletions test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package main
func main() {}
Loading