feat: add PR labeler

This commit is contained in:
Prad Nukala 2024-10-08 13:17:41 -04:00
parent a7d604555a
commit 8ac1ccaa34
3 changed files with 23 additions and 1 deletions

3
.github/pr-labeler.yml vendored Normal file
View File

@ -0,0 +1,3 @@
feature: ["feature/*", "feat/*"]
fix: fix/*
chore :hammer:: chore/*

View File

@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.12.0
uses: jetify-com/devbox-install-action@v0.11.0
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:

19
.github/workflows/label-pr.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: PR Labeler
on:
pull_request:
types: [opened]
permissions:
contents: read
jobs:
pr-labeler:
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value