Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
132 lines (130 loc) · 4.38 KB
/
Copy pathaction.yml
File metadata and controls
132 lines (130 loc) · 4.38 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: "Backporting GitHub Action"
description: GitHub action providing an automated way to backport pull requests from one branch to another
inputs:
pull-request:
description: >
URL of the pull request to backport, e.g., "https://github.com/kiegroup/git-backporting/pull/1"
required: false
target-branch:
description: >
Comma separated list of branches where the pull request must be backported to
required: false
target-branch-pattern:
description: >
Regular expression pattern to extract target branch(es) from pr labels.
The branches will be extracted from the pattern's required `target` named capturing group,
for instance "^backport (?<target>([^ ]+))$"
required: false
config-file:
description: >
Path to a file containing the json configuration for this tool,
the object must match the Args interface
required: false
dry-run:
description: >
If enabled the tool does not create any pull request nor push anything remotely
required: false
default: "false"
auth:
description: >
GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT),
if not provided will look for existing env variables like GITHUB_TOKEN
default: ${{ github.token }}
required: false
git-client:
description: >
Git client type <github|gitlab|codeberg>, if not set it is infered from pull-request
required: false
git-user:
description: Local git user name
default: "GitHub"
required: false
git-email:
description: Local git user email
default: "noreply@github.com"
required: false
title:
description: >
Backporting PR title. Default is the original PR title prefixed by the target branch
required: false
body-prefix:
description: >
Backporting PR body prefix. Default is `Backport: <original-pr-link>`
required: false
body:
description: >
Backporting PR body. Default is the original PR body
required: false
bp-branch-name:
description: >
Comma separated list of backporting PR branch names.
Default is auto-generated from commit and target branches
required: false
bp-repo:
description: >
Optional backport repository as owner/repo where the backport branch is pushed, useful to create PRs from a fork
required: false
tb-repo:
description: >
Optional target repository as owner/repo where the backport pull request should be opened against, useful to backport to a different repository than the original one
required: false
reviewers:
description: >
Comma separated list of reviewers for the backporting pull request
required: false
assignees:
description: >
Comma separated list of reviewers for the backporting pull request
required: false
no-inherit-reviewers:
description: >
Considered only if reviewers is empty, if true keep reviewers as empty list,
otherwise inherit from original pull request
required: false
default: "false"
labels:
description: >
Comma separated list of labels to be assigned to the backported pull request
required: false
inherit-labels:
description: >
If true the backported pull request will inherit labels from the original one
required: false
default: "false"
no-squash:
description: >
Backport all commits found in the pull request.
The default behavior is to only backport the first commit that was merged in the base branch.
required: false
auto-no-squash:
description: >
If the pull request was merged or is open, backport all commits.
If the pull request commits were squashed, backport the squashed commit.
required: false
strategy:
description: Cherry-pick merge strategy
required: false
default: "recursive"
strategy-option:
description: Cherry-pick merge strategy option
required: false
default: "theirs"
cherry-pick-options:
description: >
Additional cherry-pick options
required: false
comments:
description: >
Semicolon separated list of additional comments to be posted to the backported pull request
required: false
enable-err-notification:
description: >
If true, enable the error notification as comment on the original pull request
required: false
default: "false"
runs:
using: node24
main: dist/gha/index.js
branding:
icon: 'git-merge'
color: 'blue'