From 8ac1ccaa349226633bcd07eed4cb469457d21ef0 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 8 Oct 2024 13:17:41 -0400 Subject: [PATCH] feat: add PR labeler --- .github/pr-labeler.yml | 3 +++ .github/workflows/deploy-hway.yml | 2 +- .github/workflows/label-pr.yml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/label-pr.yml diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 000000000..ca8451089 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,3 @@ +feature: ["feature/*", "feat/*"] +fix: fix/* +chore :hammer:: chore/* diff --git a/.github/workflows/deploy-hway.yml b/.github/workflows/deploy-hway.yml index df4078ac0..05c09a6b4 100644 --- a/.github/workflows/deploy-hway.yml +++ b/.github/workflows/deploy-hway.yml @@ -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: diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 000000000..a5e0d6924 --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -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