From f310139a136488d9e57f0b8ac3506af5b19e4b51 Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Mon, 4 Dec 2023 00:27:17 +0530 Subject: [PATCH] feat: add pr labeler workflow Signed-off-by: Adithya Krishna --- .github/pr-labeler.yml | 52 ++++++++++++++++++++++++++++++++ .github/workflows/pr-labeler.yml | 20 ++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/pr-labeler.yml 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