mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-06-30 14:43:47 +00:00
feat: config file as option (#42)
Fix https://github.com/lampajr/backporting/issues/37 This enhancement required a huge refactoring where all arguments defaults have been centralized in one single place ArgsParser#parse
This commit is contained in:
parent
a88adeec35
commit
5ead31f606
27 changed files with 1465 additions and 219 deletions
15
action.yml
15
action.yml
|
@ -1,6 +1,15 @@
|
|||
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/lampajr/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
|
||||
|
@ -17,12 +26,6 @@ inputs:
|
|||
description: "Local git user email"
|
||||
default: "noreply@github.com"
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue