Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add auto labeler and associated config #186

Merged
merged 3 commits into from
Dec 25, 2024
Merged
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
66 changes: 66 additions & 0 deletions .github/config/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Labeler configuration

## core packages
core:
- changed-files:
- any-glob-to-any-file: 'packages/core/*'
configraph:
- changed-files:
- any-glob-to-any-file: 'packages/configraph/*'
## docs/readmes
docs-site:
- changed-files:
- any-glob-to-any-file: 'packages/docs-site/*'
## integrations
integrations/astro:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/astro/*'
integrations/nextjs:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/nextjs/*'
integrations/vite:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/vite/*'
## plugins
plugins/1password:
- changed-files:
- any-glob-to-any-file: 'packages/plugins/1password/*'
plugins/encrypted-vault:
- changed-files:
- any-glob-to-any-file: 'packages/plugins/encrypted-vault/*'
plugins/infisical:
- changed-files:
- any-glob-to-any-file: 'packages/plugins/infisical/*'
plugins/bitwarden:
- changed-files:
- any-glob-to-any-file: 'packages/plugins/bitwarden/*'
## integrations
integrations/astro:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/astro/*'
integrations/fastify:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/fastify/*'
integrations/nextjs:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/nextjs/*'
integrations/remix:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/remix/*'
integrations/vite:
- changed-files:
- any-glob-to-any-file: 'packages/integrations/vite/*'
## platforms
platforms/netlify:
- changed-files:
- any-glob-to-any-file: 'packages/platforms/netlify/*'
platforms/vercel:
- changed-files:
- any-glob-to-any-file: 'packages/platforms/vercel/*'
platforms/cloudflare:
- changed-files:
- any-glob-to-any-file: 'packages/platforms/cloudflare/*'
## example-repo
example-repo:
- changed-files:
- any-glob-to-any-file: 'example-repo/*'
7 changes: 6 additions & 1 deletion .github/workflows/pr-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
pull-requests: write
steps:
- name: Label PR
- name: Label PR based on maintainer status
uses: actions/github-script@v5
with:
script: |
Expand All @@ -29,3 +30,7 @@ jobs:
MAINTAINERS.includes(context.payload.pull_request.user.login) ? 'maintainer' : 'community'
]
});
- name: Label PR based on changed files
uses: actions/labeler@v5
with:
configuration-path: .github/config/labeler.yaml
Loading