[Bug] Passing --auto-complete does not auto-complete if branch policy on merge type is applied
See original GitHub issueDescribe 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:
- login using az login
- create pr using
az repos pr create --auto-complete
from a branch on git repository - complete all requirements for pr to close
- 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:
- Created 4 years ago
- Reactions:5
- Comments:18
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any news on this? The v6.0 REST API is no longer in preview…
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.
Fix for this is blocked on API dependency.