Skip to content

Commit 897e1ed

Browse files
authored
Dev (#123)
* chore: setup pull bot and codeowners * ci: add action to auto pr dev to main * ci: add action to auto pr feature branches to dev * ci: add pull request auto-labeler
1 parent ecb158f commit 897e1ed

File tree

6 files changed

+85
-8
lines changed

6 files changed

+85
-8
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @aamoghS

.github/labeler.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
feature:
2+
- head-branch: ['^feature/', '^feat/', '^enhancement/']
3+
bug:
4+
- head-branch: ['^bug/', '^fix/', '^hotfix/']
5+
chore:
6+
- head-branch: ['^chore/', '^task/']
7+
documentation:
8+
- head-branch: ['^doc/', '^docs/']
9+
dependencies:
10+
- changed-files:
11+
- any-glob-to-any-file: ['package.json', 'package-lock.json', 'pnpm-lock.yaml']

.github/pull.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
version: "1"
22
rules:
33
- base: main
4-
upstream: DataScience-GT:main
5-
mergeMethod: hardreset
6-
mergeUnstable: true
4+
upstream: dev
75
reviewers:
86
- aamoghS
9-
10-
- base: dev
11-
upstream: main
127
assignees:
138
- aamoghS
14-
reviewers:
15-
- aamoghS
169
conflictReviewers:
1710
- aamoghS
1811

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Auto PR dev to main
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
create-pull-request:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Create or Update PR
19+
env:
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
gh pr create \
23+
--base main \
24+
--head dev \
25+
--title "Sync: dev to main" \
26+
--body "Automated PR tracking changes from \`dev\` into \`main\`." \
27+
--reviewer aamoghS \
28+
--assignee aamoghS \
29+
--label ":arrow_heading_down: pull" || true
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Auto PR feature to dev
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
- dev
8+
- 'dependabot/**'
9+
10+
jobs:
11+
create-pull-request:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Create or Update PR
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: |
24+
gh pr create \
25+
--base dev \
26+
--head ${{ github.ref_name }} \
27+
--title "Feature: ${{ github.ref_name }} to dev" \
28+
--body "Automated PR tracking changes from \`${{ github.ref_name }}\` into \`dev\`." \
29+
--reviewer aamoghS \
30+
--assignee aamoghS \
31+
--label ":arrow_heading_down: pull" || true

.github/workflows/label.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)