feat: add pr labeler workflow

Signed-off-by: Adithya Krishna <adi@documenso.com>
This commit is contained in:
Adithya Krishna
2023-12-04 00:27:17 +05:30
parent b903de983b
commit f310139a13
2 changed files with 72 additions and 0 deletions

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

@ -0,0 +1,52 @@
'apps: marketing':
- apps/marketing/**
'apps: web':
- apps/web/**
'docker':
- docker/**
'scripts':
- scripts/**
'migrations':
- packages/prisma/migrations/**/migration.sql
'e2e tests changes':
- packages/app-tests/e2e/**
'pkg: assets':
- packages/assets/**
'pkg: email':
- packages/email/**
'pkg: eslint-config':
- packages/eslint-config/**
'pkg: lib':
- packages/lib/**
'pkg: prettier-config':
- packages/prettier-config/**
'pkg: prisma':
- packages/prisma/**
'pkg: signing':
- packages/signing/**
'pkg: tailwind-config':
- packages/tailwind-config/**
'pkg: trpc':
- packages/trpc/**
'pkg: tsconfig':
- packages/tsconfig/**
'pkg: ui':
- packages/ui/**

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

@ -0,0 +1,20 @@
name: "PR Labeler"
on:
- pull_request_target
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: ""