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.

[Bug] Passing --auto-complete does not auto-complete if branch policy on merge type is applied

See original GitHub issue

Describe the bug If you pass auto-complete in az repos pr create command autocomplete appears to be turned on, but the PR does not actually autocomplete when all criteria are met. We have a work item requirement, 2 approvers requirement, and passing build requirement.

To Reproduce Azure Cli Version: 2.0.62

Azure-Devops extension version: 0.4.0

Steps to reproduce the behavior:

  1. login using az login
  2. create pr using az repos pr create --auto-complete from a branch on git repository
  3. complete all requirements for pr to close
  4. See that PR does not actually close in browser

Expected behavior PR should merge and complete as soon as the last requirement is met

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:18

github_iconTop GitHub Comments

2reactions
siprbaumcommented, Sep 10, 2022

Any news on this? The v6.0 REST API is no longer in preview…

1reaction
atbaggacommented, May 7, 2019

If branch policy on merge strategy is applied and it does not allow basic or squash merge, --auto-complete set via CLI will not work.

If branch policy allows the basic merge or squash merge and user sets the --squash option correctly as per policy only then will the PR auto-complete work correctly.

image

Fix for this is blocked on API dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autocomplete of Pull Requests stops working
Autocomplete is not completing anymore since around 1 week. All required policies are fullfilled but the pull request will not complete.
Read more >
Pull-Request auto-complete doesn't automatically complete ...
Said script enables the pull request "auto-complete" funcionality, which lets me merge code using GIT after I complete all the branch policies.
Read more >
Complete, abandon, or revert pull requests - Azure Repos
Select Set auto-complete from the Complete dropdown list to complete and merge the PR changes as soon as conditions satisfy all branch policies....
Read more >
git auto-complete for *branches* at the command line?
The first gave error messages about declare: -A invalid_option . The second gave no errors. When I git checkout + TAB though I...
Read more >
Autocomplete Questions & Supplemental Data - Qualtrics
Autocomplete is a text entry question type that can guess the answer a respondent's going to give. It draws on a list of...
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