Skip to content

Commit fa689cc

Browse files
authored
Merge pull request #68 from libretro/feature/githubactions2
Update from feature/githubactions2
2 parents e2fd7bd + 7cae6cf commit fa689cc

3 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @JoeMatt @twinaphex

.github/workflows/pull-request.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull Request on Branch Push
2+
on:
3+
push:
4+
branches-ignore:
5+
- staging
6+
- launchpad
7+
- production
8+
jobs:
9+
auto-pull-request:
10+
name: PullRequestAction
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: pull-request-action
14+
uses: vsoch/pull-request-action@master
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
BRANCH_PREFIX: 'feature/'
18+
PULL_REQUEST_BRANCH: 'master'
19+
PULL_REQUEST_DRAFT: true

.github/workflows/rebase.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://github.com/marketplace/actions/automatic-rebase
2+
name: Automatic Rebase
3+
on:
4+
issue_comment:
5+
types: [created]
6+
jobs:
7+
rebase:
8+
name: Rebase
9+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the latest code
13+
uses: actions/checkout@v2
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
17+
- name: Automatic Rebase
18+
uses: cirrus-actions/[email protected]
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)