2023-01-05 11:41:14 +01:00
|
|
|
name: "Backporting GitHub Action"
|
|
|
|
description: "GitHub action providing an automated way to backport pull requests from one branch to another"
|
|
|
|
inputs:
|
2023-07-05 22:11:23 +02:00
|
|
|
pull-request:
|
2023-07-06 14:19:04 +02:00
|
|
|
description: "URL of the pull request to backport, e.g., https://github.com/kiegroup/git-backporting/pull/1"
|
2023-07-05 22:11:23 +02:00
|
|
|
required: false
|
|
|
|
target-branch:
|
|
|
|
description: "Branch where the pull request must be backported to"
|
|
|
|
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
|
2023-01-05 11:41:14 +01:00
|
|
|
dry-run:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "If enabled the tool does not create any pull request nor push anything remotely"
|
2023-01-05 11:41:14 +01:00
|
|
|
required: false
|
|
|
|
default: "false"
|
|
|
|
auth:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)"
|
2023-01-05 11:41:14 +01:00
|
|
|
default: ${{ github.token }}
|
|
|
|
required: false
|
2023-06-22 17:44:14 +02:00
|
|
|
git-user:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Local git user name"
|
2023-06-22 17:44:14 +02:00
|
|
|
default: "GitHub"
|
|
|
|
required: false
|
|
|
|
git-email:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Local git user email"
|
2023-06-22 17:44:14 +02:00
|
|
|
default: "noreply@github.com"
|
|
|
|
required: false
|
2023-06-20 22:29:52 +02:00
|
|
|
title:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Backporting PR title. Default is the original PR title prefixed by the target branch"
|
2023-06-20 22:29:52 +02:00
|
|
|
required: false
|
|
|
|
body:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Backporting PR body. Default is the original PR body prefixed by `backport: <original-pr-link>`"
|
2023-06-20 22:29:52 +02:00
|
|
|
required: false
|
|
|
|
body-prefix:
|
|
|
|
description: "Backporting PR body prefix. Default is `backport: <original-pr-link>`"
|
|
|
|
required: false
|
|
|
|
bp-branch-name:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Backporting PR branch name. Default is auto-generated from commit"
|
2023-06-20 22:29:52 +02:00
|
|
|
required: false
|
2023-06-22 17:44:14 +02:00
|
|
|
reviewers:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Comma separated list of reviewers for the backporting pull request"
|
2023-06-22 17:44:14 +02:00
|
|
|
required: false
|
|
|
|
assignees:
|
2023-06-27 23:22:55 +02:00
|
|
|
description: "Comma separated list of reviewers for the backporting pull request"
|
2023-06-22 17:44:14 +02:00
|
|
|
required: false
|
2023-06-27 23:22:55 +02:00
|
|
|
no-inherit-reviewers:
|
|
|
|
description: "Considered only if reviewers is empty, if true keep reviewers as empty list, otherwise inherit from original pull request"
|
2023-06-22 17:44:14 +02:00
|
|
|
required: false
|
2023-06-27 23:22:55 +02:00
|
|
|
default: "false"
|
2023-07-10 08:49:11 +02:00
|
|
|
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"
|
2023-07-11 11:22:01 +02:00
|
|
|
no-squash:
|
|
|
|
description: "If set to true the tool will backport all commits as part of the pull request instead of the suqashed one"
|
|
|
|
required: false
|
|
|
|
default: "false"
|
2023-07-12 13:50:59 +02:00
|
|
|
strategy:
|
|
|
|
description: "Cherry-pick merge strategy"
|
|
|
|
required: false
|
|
|
|
default: "recursive"
|
|
|
|
strategy-option:
|
|
|
|
description: "Cherry-pick merge strategy option"
|
|
|
|
required: false
|
|
|
|
default: "theirs"
|
2023-07-27 12:31:04 +02:00
|
|
|
comments:
|
|
|
|
description: "Semicolon separated list of additional comments to be posted to the backported pull request"
|
|
|
|
required: false
|
2023-01-05 11:41:14 +01:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: node16
|
|
|
|
main: dist/gha/index.js
|
|
|
|
|
|
|
|
branding:
|
|
|
|
icon: 'git-merge'
|
|
|
|
color: 'blue'
|