azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

Newline character is not respected

Open templafymek opened this issue 3 years ago • 2 comments

This is autogenerated. Please review and update as needed.

Describe the bug

I want to update the default message with a custom message that has newlines but the CLI is not respecting my newline characters. I've tried `n, \n, \\n

Command Name az repos pr update Extension Name: azure-devops. Version: 0.17.0.

Errors:

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az repos pr update --id 1234 --merge-commit-message "Merge PR 14: Implement Authentication\nRelated work item: #12345"

Expected Behavior

Multiline string when using az repos pr show --id 1234 in completionOptions.mergeCommitMessage field.

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.12.0 *

Extensions:
azure-devops 0.17.0

Additional Context

templafymek avatar Oct 08 '20 14:10 templafymek

@tedchamb Actually it is related to #160 but now for also --merge-commit-message.

I noticed if you don't apply the option to the cli and click 'Set auto-complete', in the background DevOps actually does it by nature. The only thing which is needed is to enable it for the cli also like the description field.

templafymek avatar Oct 08 '20 15:10 templafymek

For documentation, the resolution in #160 does not work for this argument:

az repos pr update --id 1234 --auto-complete true --merge-commit-message "Merged PR 1234: commit title" "Related work items: #45678"

responds with:

unrecognized arguments: Related work items: #45678

TRY THIS:
https://aka.ms/cli_ref
Read more about the command in reference docs

(in both CMD and Pwsh)

mlhDevelopment avatar Feb 21 '22 19:02 mlhDevelopment