Skip to content

Commit

Permalink
inv-61 auto-assign, labler action 연동 (#11)
Browse files Browse the repository at this point in the history
* inv-61 auto-assign action 연동

* chore: rename pr-auto-assign

* feat: labeler
  • Loading branch information
bepyan authored Jul 27, 2024
1 parent 83bcc6b commit a089818
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/pr-auto-assign-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addReviewers: false
addAssignees: author
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"]
12 changes: 12 additions & 0 deletions .github/workflows/pr-auto-assign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Auto Assign"
on:
pull_request:
types: [opened, ready_for_review]

jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
configuration-path: ".github/pr-auto-assign-config.yaml"
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 a089818

Please sign in to comment.