-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (30 loc) · 1.29 KB
/
pr-update-action.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
name: "Update Pull Request"
on: pull_request
jobs:
update_pr:
runs-on: ubuntu-latest
steps:
- uses: thomasmckay/pr-update-action@master
with:
# required - allows the action to make calls to GitHub's rest API
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# required - regex to match text from the head branch name
branch-regex: '.+'
# optional - whether to lowercase branch name before matching
lowercase-branch: true
# required - text template to update title with
title-template: '[%branch%]'
# optional - whether to prefix or replace title with title-template
replace-title: false
# optional - whether to add a space after title prefix
title-prefix-space: true
# optional - whether to uppercase matched branch info in title
uppercase-title: true
# required - text template to prefix body
body-template: '[%branch%](https://issues.redhat.com/browse/%branch%)'
# optional - whether to prefix or replace body with body-template
replace-body: false
# optional - number of newlines to insert after body prefix
body-prefix-newline-count: 2
# optional - whether to uppercase matched branch info in body
uppercase-body: true