-
Notifications
You must be signed in to change notification settings - Fork 57
/
action.yml
74 lines (74 loc) · 2.48 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: "Pull Request Updater GitHub Action"
description: "GitHub Action that updates a pull request with information extracted from branch name"
author: "Tamim Khan"
runs:
using: "node12"
main: "dist/index.js"
inputs:
repo-token:
description: "The GITHUB_TOKEN secret"
required: true
base-branch-regex:
description: "Regex to match text in the base branch name"
required: false
default: ""
head-branch-regex:
description: "Regex to match text in the head branch name"
required: false
default: ""
lowercase-branch:
description: "Should lowercase branch name before matching text"
required: false
default: "true"
title-template:
description: "Title template where matched text from branch gets substituted in. Allowed tokens: %basebranch% | %headbranch%"
required: false
default: ""
title-update-action:
description: "Update action to perform on the title. Allowed values: prefix | suffix | replace"
required: false
default: "prefix"
title-insert-space:
description: "Should insert a space between title and its prefix or suffix"
required: false
default: "true"
title-uppercase-base-match:
description: "Should uppercase matched text from base branch in title"
required: false
default: "true"
title-uppercase-head-match:
description: "Should uppercase matched text from head branch in title"
required: false
default: "true"
body-template:
description: "Body template where matched text from branch gets substituted in. Allowed tokens: %basebranch% | %headbranch%"
required: false
default: ""
body-update-action:
description: "Update action to perform on the body. Allowed values: prefix | suffix | replace"
required: false
default: "prefix"
body-newline-count:
description: "Number of newlines to separate body and its prefix or suffix"
required: false
default: "2"
body-uppercase-base-match:
description: "Should uppercase matched text from base branch in body"
required: false
default: "true"
body-uppercase-head-match:
description: "Should uppercase matched text from head branch in body"
required: false
default: "true"
outputs:
baseMatch:
description: "Matched text from base branch if any"
headMatch:
description: "Matched text from head branch if any"
titleUpdated:
description: "Whether the PR title was updated"
bodyUpdated:
description: "Whether the PR body was updated"
branding:
icon: "edit-3"
color: "green"