This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (39 loc) · 1.94 KB
/
create-pr.yml
File metadata and controls
56 lines (39 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This workflow will automatically create a pull request
# if the configured user (GITHUB_PUSHER_USERNAME) has pushed into the repository (also! specified by GITHUB_REPONAME).
# it will create a new pull request against the branch in GITHUB_BASE and set GITHUB_PUSHER_USERNAME as reviewer.
name: Auto Pull Request
on:
push:
branches:
- '**'
- '!master'
- '!next'
env:
GITHUB_REPONAME: getstackhead/stackhead
GITHUB_BASE: next
GITHUB_PUSHER_USERNAME: saitho
jobs:
createPullRequest:
name: Create Pull Request
runs-on: ubuntu-latest
if: contains(github.ref, 'refs/heads/') && github.ref != 'ref/heads/next' && github.ref != 'ref/heads/master'
steps:
- uses: actions/checkout@v2
- name: Create Pull Request
if: env.HEAD_REF != env.GITHUB_BASE && env.HEAD_REF != 'master' && github.repository == env.GITHUB_REPONAME && github.actor == env.GITHUB_PUSHER_USERNAME
uses: vsoch/pull-request-action@1.0.24
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PULL_REQUEST_BRANCH: ${{ env.GITHUB_BASE }}
PULL_REQUEST_REVIEWERS: ${{ env.GITHUB_PUSHER_USERNAME }}
PULL_REQUEST_TITLE: "Merge ${{ github.ref }}"
PULL_REQUEST_BODY: |
* **Please check if the PR fulfills these requirements**
- [ ] The commit message follows our guidelines
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
* **What is the current behavior?** (You can also link to an open issue here)
* **What is the new behavior (if this is a feature change)?**
* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?)
* **Other information**: