diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 6445b7e..96d2ffe 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -160,7 +160,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} automatic_release_tag: "${{ github.event.inputs.pre_release_version }}-prerelease${{ github.event.inputs.pre_release_number }}" # Use input for tag_name. - title: "Pre-release${{ github.event.inputs.pre_release_version }}" + title: "${{ github.event.inputs.pre_release_version }}" body: ${{ steps.changes.outputs.changes }} # Include changelog in release notes prerelease: true files: | diff --git a/commitify.py b/commitify.py index b900d45..1c5c9cb 100644 --- a/commitify.py +++ b/commitify.py @@ -312,8 +312,9 @@ def main(): issuesclosed = "" if confirmed_details["confirm_details"]: print("Commit details confirmed! Commit initiated.") + print(f"git commit {add} -m '{answers['change_type']} {description['description']}' -m '{longdescription['longdescription']}\n{issuesclosed}\n\nSigned-off-by: {signedby['signedby']} <{signedbyemail['signedbyemail']}>'") os.system( - f"git commit {add} -m '{answers['change_type']} {description['description']}' -m '{longdescription['longdescription']}\n{issuesclosed}\n\nSigned-off-by: {signedby['signedby']} <{signedbyemail['signedbyemail']}>'" + f"""git commit {add} -m "{answers['change_type']} {description['description']}" -m "{longdescription['longdescription']}\n{issuesclosed}\n\nSigned-off-by: {signedby['signedby']} <{signedbyemail['signedbyemail']}>" """ ) if push: print("Pushing changes.")