Skip to content

Commit 7dec428

Browse files
committed
ci: add action to auto pr feature branches to dev
1 parent 3e020fa commit 7dec428

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
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

0 commit comments

Comments
 (0)