Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
633 stars 242 forks source link

Newline character is not respected #1058

Open templafymek opened 4 years ago

templafymek commented 4 years ago

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.

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 commented 4 years ago

@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.

mlhDevelopment commented 2 years ago

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)

miqm commented 1 week ago

@v-soujanya could someone from the team take a look at this?