question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] az repos policy merge-strategy create --use-basic-merge --use-rebase-and-fast-forward --use-rebase-with-merge-commit

See original GitHub issue

Is your feature request related to a problem? Please describe.

The web UI of Azure DevOps allows to permit 4 merge strategies in repository branch policies:

  • basic merge
  • squash merge
  • rebase and fast-forward
  • rebase with merge commit

The azure-devops-cli-extension only supports configuring squash merges through az repos policy merge-strategy create --use-squash-merge.

Describe the solution you’d like

az repos policy merge-strategy create understands the additional arguments --use-basic-merge, --use-rebase-and-fast-forward and --use-rebase-with-merge-commit

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
atbaggacommented, Sep 5, 2019

How the API used to work. (This is how the command works today):

  1. –use-squash-merge is set to False: image
  2. –use-squash-merge is set to True: image

Suggested changes to command to work with newer merge types-

  1. –use-squash-merge becomes a deprecated option to be removed in the future and keeps working as it does stated above.

  2. Add 4 new merge policy options -

image

New command keeps working for older scripts as it used to. For newer use the command will list the option --use-squash-merge as deprecated. It will allow the users to use the newer merge options in any combination as required in both create and update command.

image

0reactions
fdcdscommented, Oct 7, 2019

@fdcds Release got delayed for a bit, but the new version is out now. Give it a try and share any feedback if you have.

Appears to work. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

az repos policy merge-strategy - Microsoft Learn
Manage merge strategy policy. In this article. Commands; az repos policy merge-strategy create; az repos policy merge-strategy update ...
Read more >
Unable to query branch policies using az devops CLI from ...
It only returns the "require a merge strategy" policy. The pipeline is unable to read the policies for all repositories -- INCLUDING THE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found