Questions tagged [azure-repos]
Azure Repos is the version control repository for Azure DevOps (previously VSTS) using either TFVC or Git.
311
questions
0
votes
0
answers
21
views
How to sign in to Azure Repos in VSCode GitLens
I've used VSCode Gitlens for git actions for repositories hosted on Github. But now, my projects are hosted on Azure Repos, and I cannot sign in to Gitlens as it always shows the "Sign in with ...
-1
votes
0
answers
39
views
use azure artifact but not azure repos [closed]
Is it a good idea to use azure artifact service while using Git as SCM instead of azure repos
0
votes
0
answers
48
views
Using GIT with Azure pipelines
I have main dev branch and I want to use pipeline to merge dev into some branch via common shell script.
Pipeline snippet is below:
steps:
- checkout: self
clean: true
persistCredentials: ...
0
votes
2
answers
42
views
Single yaml file for multiple azure repos
Background -
I have multiple web service projects under multiple azure repos. All these projects have same structure as they are ASP.NET core web applications. I have written separate yaml pipelines ...
1
vote
1
answer
31
views
How to delete TFVC repository on Azure Devops?
I have 2 repositories linked to a project in Azure DevOps.
One repository is GIT and the other is TFVC. I wanted to try out TFVC, but turns out I will continue with GIT for support purposes. So I want ...
0
votes
0
answers
45
views
Build Validation pipeline isnt running when raised a PR
I have created a pipeline and added it at Build validation under branch policies as our repos are hosted on Azure Repos.
The yml file is in the default branch of repo and pipeline should trigger when ...
-2
votes
1
answer
39
views
how to get azure repos details into csv file using api
hi team I want PowerShell script for to get azure repos details like (name of repo, no. of branches, PR approvers for branches, policy for branches) converted into csv file using azure API.
0
votes
0
answers
3
views
Azure Repos pull request UI size info, etc
Does the Azure Repos web app have a way to show code change size info for a pull request? It would be helpful to see, say, count of files changed and number of lines of code changed.
0
votes
1
answer
65
views
How to change GIT diff-config on Azure DevOps?
I can ignore GIT file renames on my local machine by adding following line to .git/config
[diff]
renames = false
Is it possible to configure this on the Azure DevOps Repos ? We want to use the ...
1
vote
0
answers
77
views
Using Repository Checks in conjunction with Azure Pipelines to ensure that a pipeline within the repository extends a template in a different repo?
Let's say I have two repositories defined:
code
templates
In code, I have my application source code and an Azure Pipelines YAML file, pipeline.yml.
In templates, I have an Azure Pipelines YAML file,...
0
votes
1
answer
36
views
Enforce naming/folder pattern while creating branch in Azure Repos
I want to enforce a policy at my azure repository where branch name should start only with feature/* OR hotfix/* etc. If any other name is given then it should not be possible to create that named ...
-1
votes
0
answers
28
views
How to handle bug fix via git branching strategy?
I am using azure devops.
Developer creates a feature branch from develop and raises a PR to merge the code with develop. When multiple features are integrated into develop branch then a PR is raised ...
0
votes
0
answers
24
views
Azure Repos restrict push to branch from all branches except one
Imagine, we have branch policy on Story branch and it is impossible to push to this branch without completed PR.
But is it possible to allow push to Story branch only if name of the branch is Dev.
So ...
1
vote
0
answers
47
views
Best Practices for Azure DevOps - Managing Repo(s) for Related Initiatives
I am starting up a development team within my organization and we are managing all of our initiatives under a single Azure DevOps Project. To be clear I am trying to avoid using the word "...
0
votes
1
answer
36
views
azure devops REST API: How to check pull request status
I'm trying to find if a PR is closed, abandoned, or active, merging, or with conflicts. I'm trying GetPullRequestStatusesAsync, but I don't get anything back. The test ids cover various states, but ...
0
votes
1
answer
39
views
How to connect branch policies with work items in Azure Repos?
I have a couple of questions about branch policies in Azure Repos.
As you can see we have a branching strategy based on linked items in Azure DevOps.
My questions:
Is it possible to allow users push ...
0
votes
0
answers
44
views
Unable to clone on my MAC using terminal commands
I am using macbook, I have been trying to clone the repository using "git clone" command from azure repos using https link. but somewhere I am getting an issue, i could not clone it every ...
0
votes
0
answers
24
views
AZURE DEVOPS REPOS: after revert the Pull Request, getting conflicts when raise PR from feature branch
Hi I am using Visual Studio 17 & Azure-DevOps
my branches
Development_1
feature_1
I have made changes feature_1 branch on test.p file
commit the changes
1 commit ready.
raise a Pull Request for ...
0
votes
1
answer
27
views
DevOps repo create event
is there a way how to listen DevOps repo events about repo creation.
Idea is to automate pipeline creation right after when a repo is created and it has a pipeline directory.
0
votes
1
answer
30
views
How to start Pipeline B automatically when Pipeline A finishes successfully
My build pipeline triggers upon commits into “main” branch of my Azure Repo, builds my React app, executes custom PS script that copies selected css and js files from build folder to an external ...
-1
votes
1
answer
43
views
how to edit py file in azure repo using azure devops pipline?
I have lots of py files in repo and I want to edit them using azure devops pipline, is that possible?
every time I put a file I can edit it with CI / CD
0
votes
1
answer
91
views
How to store Dynamics CRM solution in DevOps Repo
I am using Wael Hamze's great library to export CRM solutions. I would like to archive the zip files, preferably in a Repository folder.
I have selected the Repos folder as the output path. While the ...
1
vote
0
answers
81
views
Add Husky(Git Hooks) into Azure DevOps Project
My repository is on AzureDevops, and I cloned it by the button: "Clone in VS Code". The repository was cloned correctly. I have the files from package.json, .gitignore, etc...
But I don't ...
1
vote
1
answer
28
views
Can users access and manage cloud code repositories from Oracle Autonomous Database?
Today, users can access data and scripts like in object stores (OCI object store, AWS S3, Azure Blob Storage etc.) from Autonomous Database. Is it possible to also manage and access cloud code ...
0
votes
1
answer
74
views
How to unlink a DevOps repo in Databricks Repos?
I linked this DevOps repo inside my Databricks workspace Repos, but now I want to get rid of it.
And no matter how much I've searched, I can't find a way to do something that looks this simple.
I ...
1
vote
1
answer
280
views
ERROR: The requested resource requires user authentication: https://dev.azure.com/my_org/my_project/_apis/git/repositories
I am logging into az cli using correct token:
echo my_pat | az devops login
But I see the following error while getting the existing repositories in a project:
az repos list --org {ado_org_url} --...
0
votes
1
answer
180
views
Azure DevOps Maximum number of Repos & Pipelines support
I am working on a project automation where there will be maximum of 500 Repos & CI/CD Pipelines created under a particular Azure DevOps Project. Does it support that much number of Repos & ...
0
votes
0
answers
49
views
How to center an image on Azure Repos README.md file
This is my directory structure:
doc/
├─ image.png
src/
README.md
I'm trying to center and resize a logo image on the top of the README file, just like I'm used to do on GitHub (using HTML tags), but ...
1
vote
1
answer
446
views
How to use Azure DevOps REST API to Update File?
I'm trying to Update a test.json file hosted on a Azure DevOps Repo. I'm using a Logic App. Having trouble identifying the order of operations from the documentation.
I think I need to...
Issue a GET ...
1
vote
1
answer
108
views
az repos pr create multiple reviewers
How can I create a pull request with multiple reviewers from he command line?
The following works:
az repos pr create -s release -t master --auto-complete --reviewers "mycolleague@company.com&...
0
votes
0
answers
169
views
azure Devops Pipeline resources template from other github repository
I have 2 projects one is Dotnet core application and in another project i simply initialise a repo with template.yml.In which i would like to use that template.yml for all the projects in an ...
0
votes
1
answer
61
views
Git's not detecting file name casing change
I've currently facing a rather odd issue, git is not looking for case changes on my files.
I had app.module.ts and outside.dto.ts and I've changed them to App.module.ts and Outside.dto.ts.
I'm not ...
-1
votes
1
answer
120
views
When I try to package my python code into a .ZIP through YAML, the folder is empty
I’m using Azure DevOps and I’m trying to package my python code into a .ZIP file. I’m also using Azure for my repo for my python folder.
Here’s my folder in my repo
Here’s my YAML code for my pipeline
...
1
vote
1
answer
135
views
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?
0
votes
0
answers
20
views
Python/Git/Azure Repos - Read remote file without Pulling/Downloading [duplicate]
Given an Azure Repos git repo/file url, is it possible to read a single file located in the git repo straight into memory without having to pull the whole repo? Specifically using the Python git ...
0
votes
1
answer
100
views
Automation of Database objects (Stored Procs, Triggers, UDfs) from Azure CosmosDB
One of my projects consists of Stored Procs, Triggers, UDfs in Azure CosmosDB. We would like to automate it so it is easy to deploy to different environments, e.g. Dev QA, Prod, in the same effect of ...
0
votes
0
answers
60
views
How to configure power bi workspace (reports) with azure devops repository (not upload manully to repository)
How to configure power bi workspace (reports) with azure devops repository (not upload manully to repository), Automation Power BI workspace to Azure DevOps Repo.
1
vote
1
answer
280
views
Azure-Devops: find in which branches a commit is contained
We have workitems in DevOps that have commits linked in them.
I open the Git commit in DevOps and would like to find information about which branches contain the commit.
How can I determine the ...
0
votes
1
answer
38
views
Pull Request warning in Azure Repos [duplicate]
I have created a PR, no merge conflict displayed. In Azure Repos a warning is displayed:
Warning: Multiple merge bases detected. The list of commits displayed might be incomplete.
0
votes
1
answer
156
views
Azure devOps repo is not synced with my git repo
My git repo has been connected to my project repo in azure devops. Later on, I created a new branch in my git repo. But I don't see this new branch in my azure repo. Shouldn't they be synced?
Update: ...
0
votes
1
answer
149
views
git-tfs when trying to clone TFVC repo error contacting server
I am trying to move a repo from TFVC hosted by an ex colleague to a new azure devops account (which will use git). From researching, the only possibility I have found to move it with history is to use ...
1
vote
2
answers
122
views
Create file automatically when repo is created in Azure Devops
Is it possible to automatically create a file when a repository is created?
For Example:
Create 'Changelog.md'
Like 'Readme.md' is created with every repo.
0
votes
1
answer
89
views
Azure devops : Approvals and checks on a repository level
I'm using the Approvals and checks for the releases and builds with no problem,
and I was surprised to see this feature on a repository level.
Any idea on the added value to do it on repo level ?
0
votes
2
answers
346
views
Azure Devops API: Find a Git commit by Sha1 prefix, branch name or tag name?
In a local Git installation, I can use "git show" to find a specific commit, given a SHA1 hash prefix, a branch name, or a tag name.
How can I achieve the same thing with the TFS/Azure ...
1
vote
1
answer
30
views
File names in remote are different than locally
I have a git repository on Azure DevOps.
I have noticed that the file names on the DevOps portal are different than in my local repository. However, when I try to git pull it says that there repo is ...
1
vote
2
answers
764
views
unable to generate git credential for Azure Repos git using Azure DevOps
While clicking the button to generate git credentials under Azure DevOps, the option is loading with an anonymous exception, and the git credentials are not getting generated for a particular AD User.
...
0
votes
0
answers
126
views
Pushing / Pulling code to azure repos of devops in VSCODE without password (HTTPS)
I am using Azure repos, i have cloned the repo using HTTPS option. Now every time i push or pull code to the repository it is asking to enter the password everytime in terminal. For that i have to go ...
0
votes
1
answer
198
views
Azure DevOps Repo restrict Git Commit to specific folders
In the Azure DevOps repo, I would like to allow git commits into a particular folder alone. If the developer commits to any other folder in a git repo, I would like the git commit to be rejected. Is ...
0
votes
1
answer
317
views
Is there a way to auto approve Pull Request?
I am using Azure DevOps Repo and Build Pipeline and creating Pull Request using Rest API and trying approving it via Rest API by setting vote = 10 but getting below error.
You cannot record a vote for ...
0
votes
1
answer
348
views
How do I debug Git LFS push failures?
I have a repo I'm migrating to Azure DevOps, the repo utilizes LFS for large files. Files in LFS range from hundreds of KB to hundreds of MB. When trying to push this repo into a new repo in Azure ...