Skip to content

Commit

Permalink
feat: labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
bepyan committed Jul 26, 2024
1 parent 08fdee6 commit a346b43
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/pr-labler-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
feat:
- head-branch: ["^feat", "^feature"]

fix:
- head-branch: ["^fix"]

refactor:
- head-branch: ["^refactor"]

api:
- changed-files:
- any-glob-to-any-file: ["src/app/api/*"]

db:
- changed-files:
- any-glob-to-any-file: ["src/lib/db/*", "drizzle.config.ts"]

chore:
- head-branch: ["^chore"]
- changed-files:
- any-glob-to-any-file: ["package.json", "bun.lockb"]
15 changes: 15 additions & 0 deletions .github/workflows/pr-labler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: "./.github/pr-labeler-config.yaml"

0 comments on commit a346b43

Please sign in to comment.