Reconnect fails if branch policy does not allow push
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
I was recently trying to change my branch name using `az staticwebapp disconnect` and `az staticwebapp reconnect`. On trying to reconnect, I kept getting the error 'Operation returned an invalid status 'Internal Server Error' after the authorization step. I figured out that this was because the branch I was attempting to link to required PRs to merge changes (no direct push). An error message indicating this, or at least a note in the docs, would have been helpful.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: e683c181-f005-a6c8-cb11-74ce557e51f8
* Version Independent ID: 860411b7-f2f1-af2b-b5e2-7d67e1b8e028
* Content: [az staticwebapp](https://docs.microsoft.com/en-us/cli/azure/staticwebapp?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/staticwebapp.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/staticwebapp.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.