Skip to content

Commit 50ddf02

Browse files
SonataCIjordisala1991
authored andcommitted
DevKit updates
1 parent ac30c87 commit 50ddf02

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# DO NOT EDIT THIS FILE!
2+
#
3+
# It's auto-generated by sonata-project/dev-kit package.
4+
5+
name: Auto merge DevKit PRs
6+
7+
on:
8+
pull_request_target:
9+
branches:
10+
- 4.x
11+
- 5.x
12+
types: [labeled]
13+
14+
jobs:
15+
auto-merge:
16+
runs-on: ubuntu-latest
17+
18+
if: github.event.pull_request.user.login == 'SonataCI' && github.event.label.name == 'automerge'
19+
20+
env:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
23+
steps:
24+
- name: Auto merge PR when conditions are met
25+
run: gh pr merge --repo "${{ github.repository }}" --rebase --auto "${{ github.event.pull_request.number }}"
26+
27+
- name: Auto approve PR
28+
run: gh pr review --repo "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}"

0 commit comments

Comments
 (0)