-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.93 KB
/
create-pull-request.yml
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
name: Create Pull Request
on:
push:
branches:
- integration
jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Usage: gh pr create [flags]
#
# Flags:
# -a, --assignee login Assign people by their login. Use "@me" to self-assign.
# -B, --base branch The branch into which you want your code merged
# -b, --body string Body for the pull request
# -F, --body-file file Read body text from file (use "-" to read from standard input)
# -d, --draft Mark pull request as a draft
# -f, --fill Do not prompt for title/body and just use commit info
# -H, --head branch The branch that contains commits for your pull request (default: current branch)
# -l, --label name Add labels by name
# -m, --milestone name Add the pull request to a milestone by name
# --no-maintainer-edit Disable maintainer's ability to modify pull request
# -p, --project name Add the pull request to projects by name
# --recover string Recover input from a failed run of create
# -r, --reviewer handle Request reviews from people or teams by their handle
# -t, --title string Title for the pull request
# -w, --web Open the web browser to create a pull request
#
# must provide `--title` and `--body` (or `--fill`) when not running interactively
#
# https://cli.github.com/manual/gh_pr_create
- name: Create Pull Request
run: |
# title will look like "INT YYYY-MM-DD"
TITLE=$(echo ${{ github.ref_name }} | sed 's/egration//' | tr '[:lower:]' '[:upper:]') $(date +'%Y-%m-%d')
gh pr create --fill --title $TITLE
env:
GITHUB_TOKEN: ${{ github.token }}
continue-on-error: true