Skip to content

The Open Source DocuSign Alternative.

feat: add pr labeler workflow

Adithya Krishnaf310139a1364
diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml
new file mode 100644
index 000000000..fc980b678
--- /dev/null
+++ b/.github/pr-labeler.yml
@@ -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/**
+
+
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml
new file mode 100644
index 000000000..0ec8a6231
--- /dev/null
+++ b/.github/workflows/pr-labeler.yml
@@ -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: ""
\ No newline at end of file