Skip to content

Commit 923a354

Browse files
authored
Added workflow for automerging PRs from LEGO system (#14760)
* Added workflow for automerging PRs from csigs * Fix mapping * Change wf name * Add action only to PRs opened to Localisation branch
1 parent 77f58d2 commit 923a354

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'LEGO automerge'
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
branches:
8+
- Localization
9+
10+
jobs:
11+
worker:
12+
runs-on: ubuntu-latest
13+
14+
if: github.actor == 'csigs'
15+
steps:
16+
- uses: actions/github-script@v3
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
script: |
20+
github.pulls.merge({
21+
owner: context.payload.repository.owner.login,
22+
repo: context.payload.repository.name,
23+
pull_number: context.payload.pull_request.number,
24+
merge_method: 'squash'
25+
})

0 commit comments

Comments
 (0)