From 6e2aa753a6c2bd362e8d3a4205a42ce613b25deb Mon Sep 17 00:00:00 2001 From: aamoghS Date: Thu, 19 Mar 2026 20:21:27 -0400 Subject: [PATCH 1/4] chore: setup pull bot and codeowners --- .github/CODEOWNERS | 1 + .github/pull.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..8deffd6 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @aamoghS diff --git a/.github/pull.yml b/.github/pull.yml new file mode 100644 index 0000000..a725988 --- /dev/null +++ b/.github/pull.yml @@ -0,0 +1,13 @@ +version: "1" +rules: + - base: main + upstream: dev + reviewers: + - aamoghS + assignees: + - aamoghS + conflictReviewers: + - aamoghS + +label: ":arrow_heading_down: pull" +conflictLabel: "merge-conflict" From 3e020fa1191128348c91ca895b1e764ea049c509 Mon Sep 17 00:00:00 2001 From: aamoghS Date: Thu, 19 Mar 2026 20:23:16 -0400 Subject: [PATCH 2/4] ci: add action to auto pr dev to main --- .github/workflows/dev-to-main-pr.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/dev-to-main-pr.yml diff --git a/.github/workflows/dev-to-main-pr.yml b/.github/workflows/dev-to-main-pr.yml new file mode 100644 index 0000000..f69af25 --- /dev/null +++ b/.github/workflows/dev-to-main-pr.yml @@ -0,0 +1,29 @@ +name: Auto PR dev to main + +on: + push: + branches: + - dev + +jobs: + create-pull-request: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create or Update PR + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr create \ + --base main \ + --head dev \ + --title "Sync: dev to main" \ + --body "Automated PR tracking changes from \`dev\` into \`main\`." \ + --reviewer aamoghS \ + --assignee aamoghS \ + --label ":arrow_heading_down: pull" || true From 7dec4284195ee3de5b12295b13a39bae301b607b Mon Sep 17 00:00:00 2001 From: aamoghS Date: Thu, 19 Mar 2026 20:24:33 -0400 Subject: [PATCH 3/4] ci: add action to auto pr feature branches to dev --- .github/workflows/feature-to-dev-pr.yml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/feature-to-dev-pr.yml diff --git a/.github/workflows/feature-to-dev-pr.yml b/.github/workflows/feature-to-dev-pr.yml new file mode 100644 index 0000000..468f65e --- /dev/null +++ b/.github/workflows/feature-to-dev-pr.yml @@ -0,0 +1,31 @@ +name: Auto PR feature to dev + +on: + push: + branches-ignore: + - main + - dev + - 'dependabot/**' + +jobs: + create-pull-request: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Create or Update PR + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr create \ + --base dev \ + --head ${{ github.ref_name }} \ + --title "Feature: ${{ github.ref_name }} to dev" \ + --body "Automated PR tracking changes from \`${{ github.ref_name }}\` into \`dev\`." \ + --reviewer aamoghS \ + --assignee aamoghS \ + --label ":arrow_heading_down: pull" || true From 377fff888a9842d9d610581064b23ee30c57526a Mon Sep 17 00:00:00 2001 From: aamoghS Date: Thu, 19 Mar 2026 20:29:01 -0400 Subject: [PATCH 4/4] ci: add pull request auto-labeler --- .github/labeler.yml | 11 +++++++++++ .github/workflows/label.yml | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..08edfea --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +feature: + - head-branch: ['^feature/', '^feat/', '^enhancement/'] +bug: + - head-branch: ['^bug/', '^fix/', '^hotfix/'] +chore: + - head-branch: ['^chore/', '^task/'] +documentation: + - head-branch: ['^doc/', '^docs/'] +dependencies: + - changed-files: + - any-glob-to-any-file: ['package.json', 'package-lock.json', 'pnpm-lock.yaml'] diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..2a34027 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5