mirror of
https://code.forgejo.org/actions/git-backporting.git
synced 2025-02-23 11:05:44 -05:00
37 lines
No EOL
1.3 KiB
YAML
37 lines
No EOL
1.3 KiB
YAML
name: "Backporting GitHub Action"
|
|
description: "GitHub action providing an automated way to backport pull requests from one branch to another"
|
|
inputs:
|
|
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
|
|
pull-request:
|
|
description: "URL of the pull request to backport, e.g., https://github.com/lampajr/backporting/pull/1."
|
|
required: true
|
|
target-branch:
|
|
description: "Branch where the pull request must be backported to."
|
|
required: true
|
|
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
|
|
|
|
runs:
|
|
using: node16
|
|
main: dist/gha/index.js
|
|
|
|
branding:
|
|
icon: 'git-merge'
|
|
color: 'blue' |