Azure / Azure/azure-cli

Azure DevOps Unable to 'Disable Forks' using CLI or REST API

Open
#22,869 14 comments 1 reaction 0 assignees View on GitHub
act-platform-engineering-squad customer-reported DevOps needs-team-attention Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I went through CLI documentation to find a switch to 'Disable/Enable Fork' . Similarly looked at the REST API reference but could not find it. I need this to disable forking in all of my git repos in the AzDo project

https://docs.microsoft.com/en-us/azure/devops/repos/git/repository-settings?view=azure-devops&tabs=azure-devops-cli#enable-forks

![image](https://user-images.githubusercontent.com/7728453/173692551-6744f39a-d2a2-46a2-966c-79001bdf4331.png)

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: d7db2cb6-afa5-8f4a-f3a2-4c51e329431c
* Version Independent ID: 26d97a17-7e5c-e099-8281-34b1a2307419
* Content: [az repos](https://docs.microsoft.com/en-us/cli/azure/repos?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/repos.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/repos.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.