Skip to content

Commit

Permalink
Merge pull request #5 from Famcache/chore/ci
Browse files Browse the repository at this point in the history
chore(ci): Added PR labeler & assigner actions
  • Loading branch information
shahen94 authored Jun 1, 2024
2 parents 072d7aa + 502e9b6 commit 64c54b6
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/label-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
documentation:
- changed-files:
- any-glob-to-any-file: ["*.md", "example/**/*"]

cache:
- changed-files:
- any-glob-to-any-file: ["src/transport/cache-query.ts"]

messaging:
- changed-files:
- any-glob-to-any-file: ["src/transport/messaging.ts"]

ci:
- changed-files:
- any-glob-to-any-file: [".github/**/*", "release.config.cjs"]
core:
- changed-files:
- any-glob-to-any-file:
["src/famcache.ts", "src/index.ts", "package.json"]

feature:
- head-branch: ["^feature", "feature"]

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

chore:
- head-branch: ["^chore", "chore"]
19 changes: 19 additions & 0 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Assign Issue/PR
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: shahen94
numOfAssignee: 1
20 changes: 20 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "PR Labeler"
on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GH_TOKEN }}
configuration-path: .github/label-config.yml

0 comments on commit 64c54b6

Please sign in to comment.