git-backporting/action.yml
Andrea Lamparelli c4dbb26c1d
feat(issue-54): backport pr commits without squash (#55)
* feat(issue-54): backport pr commits without squash

fix https://github.com/kiegroup/git-backporting/issues/54

* feat(issue-54): fixed readme
2023-07-11 11:22:01 +02:00

69 lines
No EOL
2.5 KiB
YAML

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: "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
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)"
default: ${{ github.token }}
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:
description: "Backporting PR body. Default is the original PR body prefixed by `backport: <original-pr-link>`"
required: false
body-prefix:
description: "Backporting PR body prefix. Default is `backport: <original-pr-link>`"
required: false
bp-branch-name:
description: "Backporting PR branch name. Default is auto-generated from commit"
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: "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"
runs:
using: node16
main: dist/gha/index.js
branding:
icon: 'git-merge'
color: 'blue'