Questions tagged [azure-repos]

Azure Repos is the version control repository for Azure DevOps (previously VSTS) using either TFVC or Git.

Azure Repos is the version control repository for Azure DevOps (previously Visual Studio Team Services, VSTS) using either TFVC or Git.

380 questions
5
votes
2 answers

Different merge strategies (automatically) based on the source branch

We are adopting gitflow process in our project using Azure DevOps. I have the following scenarios: When the features branches are merged into Develop, I want to enforce squash merge strategy while completing the pull request When the Release branch…
Chubsdad
  • 24,777
  • 4
  • 73
  • 129
5
votes
1 answer

How to save your project to Azure DevOps from Visual Studio 2019?

I am new to Visual Studio and Azure DevOps. I have created an ASP.NET and C# project on Visual Studio, and now I want to save it to an Azure DevOps repository. This repo exists and I have access to it. How do I save this project to that repo from…
Zizzipupp
  • 1,301
  • 1
  • 11
  • 27
5
votes
4 answers

Azure devops - server-side git hooks

How can we implement server-side hooks, or any similar solution, to restrict git push into git server? For example, we want to disable push of commits containing *.class files.
Yael
  • 61
  • 1
  • 1
  • 3
4
votes
2 answers

Azure child pipelines across repositories with responses

I have multiple repos thanks to a micro-frontend architecture and would like to run the test suite found in another repo on a specified environment/url. My parent pipeline creates and environment for a PR preview. Rather than checkout the other…
gazzwi86
  • 1,019
  • 1
  • 15
  • 35
4
votes
1 answer

Difference in Git Repositories in Azure DevOps

I have two git repositories in a project in Azure DevOps. Why do they display differently? One has a red icon, the other a black icon. What is the difference?
Donny Kwitty
  • 327
  • 2
  • 15
4
votes
3 answers

TF401398: The pull request cannot be activated because the source and/or the target branch no longer exists, or the requested refs are not branches

I was getting the following errors while creating a pull-request using azuredevops golang API error: TF401398: The pull request cannot be activated because the source and/or the target branch no longer exists, or the requested refs are not…
Niyas Ali
  • 203
  • 2
  • 9
4
votes
2 answers

Azure Devops image in readme from relative path

I'm trying to add an image to my readme but I can't get it to render. As far as I can see online my current setup should work. My folder structure is like so: And then I tried to use the image located in the resources directory, but that did not…
sommmen
  • 6,570
  • 2
  • 30
  • 51
4
votes
1 answer

Description of "Allow requestors to approve their own changes" is confusing

The description on this page https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops#require-a-minimum-number-of-reviewers says: If Allow requestors to approve their own changes is selected, the creator of the pull…
Marko
  • 929
  • 9
  • 27
4
votes
1 answer

Adding multiple commands under scripts stage in Azure YAML pipeline

I need to execute following commands in the project repo to a do a build echo Building Software/linux_framework source /opt/pkg/linux/settings.sh cd Software/linux_framework make images HARDWARE=../my_xsa/ BOARD=local Snippet from my YAML…
h1990
  • 125
  • 3
  • 11
4
votes
0 answers

Hosting AWS Amplify Application from Azure Repos

My Org Projects are in Azure, So I create an Azure Repos project for my Amplify Application as it is git repo and easy for the development. Now is the time for deployment automation, Is there a way to deploy an Amplify App in Azure Repos either…
Sagar
  • 818
  • 1
  • 6
  • 13
4
votes
4 answers

Run Azure Pipelines job only when certain files are changed

I have a repository that contains both a Dockerfile and other code. We want to run certain steps regardless of what changed, but only want to run the docker build job when **/Dockerfile is changed. I've reviewed the Conditions documentation and the…
lukiffer
  • 11,025
  • 8
  • 46
  • 70
4
votes
3 answers

Can't push local git to Azure DevOps git repo because of Authentication Failed, but for correct password

I have an Azure DevOps account that I'm trying to use to host git repos. The problem is that when I add remote origin then try to git push -u origin --all I'm prompted for a password, but the account's password results with: fatal: Authentication…
CoderLee
  • 3,079
  • 3
  • 25
  • 57
4
votes
2 answers

Automatically add a git tag after a pull request is accepted

We are following the gitflow workflow with support versions and we are also using PR (feature -> develop [squash], hotfix -> support/x.x, hotfix -> develop, release/x.x -> master) The problem is that pull requests for releases are not strictly…
Christophe Blin
  • 1,687
  • 1
  • 22
  • 40
4
votes
3 answers

Can we lock a file in Azure DevOps?

I know that we can lock a branch in Azure Repos so that users can't push changes to it. Can we lock a particular file inside the branch so that it cannot be changed by other users? Or can this be done in visual studio - team explorer? My current…
Sindu_
  • 1,347
  • 8
  • 27
  • 67
4
votes
3 answers

Azure DevOps: Set Git branch permission for all repos in all projects

Is there a way to set the "Force Push" permission for a group in Azure DevOps for all current and future branches in all current and future repos and projects? We currently have about 50 projects with one repo and several branches each and it would…
Dominik G
  • 1,459
  • 3
  • 17
  • 37
1 2
3
25 26