diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..8deffd63 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @aamoghS diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..08edfea0 --- /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/pull.yml b/.github/pull.yml index 9c218007..a7259881 100644 --- a/.github/pull.yml +++ b/.github/pull.yml @@ -1,18 +1,11 @@ version: "1" rules: - base: main - upstream: DataScience-GT:main - mergeMethod: hardreset - mergeUnstable: true + upstream: dev reviewers: - aamoghS - - - base: dev - upstream: main assignees: - aamoghS - reviewers: - - aamoghS conflictReviewers: - aamoghS diff --git a/.github/workflows/dev-to-main-pr.yml b/.github/workflows/dev-to-main-pr.yml new file mode 100644 index 00000000..f69af256 --- /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 diff --git a/.github/workflows/feature-to-dev-pr.yml b/.github/workflows/feature-to-dev-pr.yml new file mode 100644 index 00000000..468f65eb --- /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 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000..2a340279 --- /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