From e00d99112ba7ab57997f83f2356a1d0e9100bee5 Mon Sep 17 00:00:00 2001 From: maydayv7 Date: Tue, 1 Feb 2022 10:48:39 +0530 Subject: [PATCH] fix: Re-introduce `inputs.pr-title` This is to allow users to override the PR title since the commit message as well as title are processed differently which may lead to errors in how they are displayed. For example, the commit message needs quotations to be escaped --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index fc327f7..b8d9032 100644 --- a/action.yml +++ b/action.yml @@ -10,7 +10,11 @@ inputs: required: false default: ${{ github.token }} commit-msg: - description: 'The commit message as well as title of the PR to be created' + description: 'The message provided with the commit' + required: false + default: "flake.lock: Update" + pr-title: + description: 'The title of the PR to be created' required: false default: "flake.lock: Update" pr-labels: @@ -49,7 +53,7 @@ runs: with: branch: update_flake_lock_action delete-branch: true - title: ${{ inputs.commit-msg }} + title: ${{ inputs.pr-title }} token: ${{ inputs.token }} labels: ${{ inputs.pr-labels }} body: |