diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..1da5f7d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +# Path-based area labels for pull requests (actions/labeler v5 syntax), used by the shared +# conventions workflow from kaffeelisten/.github. +area:landing: + - changed-files: + - any-glob-to-any-file: ['index.html', '404.html', 'styles.css', '*.js', 'assets/**', 'robots.txt'] +area:brand: + - changed-files: + - any-glob-to-any-file: ['assets/layers/**', 'assets/logo.svg', 'assets/og.jpg', 'assets/fonts/**'] +area:delivery: + - changed-files: + - any-glob-to-any-file: ['.github/**', '.nojekyll'] +area:docs: + - changed-files: + - any-glob-to-any-file: ['docs/**', '*.md'] diff --git a/.github/workflows/conventions.yml b/.github/workflows/conventions.yml new file mode 100644 index 0000000..3eb6ad3 --- /dev/null +++ b/.github/workflows/conventions.yml @@ -0,0 +1,25 @@ +name: Conventions + +# Calls the organisation's shared conventions in kaffeelisten/.github. Pair it with a +# `.github/labeler.yml` that maps this repository's folders to its `area:*` labels. +on: + pull_request_target: + types: [opened, edited, reopened, synchronize, ready_for_review, converted_to_draft, labeled, unlabeled, closed] + issues: + types: [opened, reopened, closed, assigned, labeled] + issue_comment: + types: [created] + schedule: + - cron: '23 5 * * *' + workflow_dispatch: + +permissions: {} + +jobs: + conventions: + uses: kaffeelisten/.github/.github/workflows/org-conventions.yml@main + permissions: + contents: read + issues: write + pull-requests: write + secrets: inherit