Skip to content

Commit

Permalink
added PR opening workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Massimiliano Pippi authored Sep 20, 2019
1 parent 4298d98 commit c7e99a6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pr

on:
push:
branches:
# apigentools will push branches named like
# 'html2/1568207674.3489769'
- 'html2/*'

jobs:
open-pr:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
with:
github-token: ${{github.token}}
script: |
github.pulls.create({
...context.repo,
title: context.payload.commits[0]['message'],
head: context.ref,
base: 'master'
})

0 comments on commit c7e99a6

Please sign in to comment.