8000 auto-open PRs when a new client is generated (#4) · arduino/iot-client-js@44482a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44482a0

Browse files
author
Massimiliano Pippi
authored
auto-open PRs when a new client is generated (#4)
1 parent 75eb347 commit 44482a0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pr
2+
3+
on:
4+
push:
5+
branches:
6+
# apigentools will push branches named like
7+
# 'javascript/1568207674.3489769'
8+
- 'javascript/*'
9+
10+
jobs:
11+
open-pr:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/github-script@0.2.0
16+
with:
17+
github-token: ${{github.token}}
18+
script: |
19+
github.pulls.create({
20+
...context.repo,
21+
title: context.payload.commits[0]['message'],
22+
head: context.ref,
23+
base: 'master'
24+
})

0 commit comments

Comments
 (0)
0