Skip to content

Commit

Permalink
add auto labeler and associated config (#186)
Browse files Browse the repository at this point in the history
* add auto labeler and associated config

* Update .github/config/labeler.yaml

* Update labeler.yaml

---------

Co-authored-by: Theo Ephraim <theo@dmno.dev>
  • Loading branch information
philmillman and theoephraim authored Dec 25, 2024
1 parent ce17711 commit 102ca7c
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
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

0 comments on commit 102ca7c

Please sign in to comment.