azure-repos

Azure DevOps deny access to Pipelines

邮差的信 提交于 2019-12-11 19:09:01
问题 Is there a way to grant team members access to the Repos section of a team project without granting them access to the Pipelines section of the team project? 回答1: You may try this: Create new security group: Add users to this group Get Security Setting for Pipeline Update view setting to Deny 来源: https://stackoverflow.com/questions/57907600/azure-devops-deny-access-to-pipelines

How to push the file to TFS using azure-devops-node-api library in NodeJS?

若如初见. 提交于 2019-12-11 16:23:49
问题 I'm trying to push the files to repository in Azure Repos. I'm using azure-devops-node-api library to connect and push the file to the repository. I'm beginner in NodeJS. Please find the below code. I'm not sure how to proceed further. Please help! const orgUrl = "https://dev.azure.com/orgname"; const azure = require('azure-devops-node-api'); var accessToken = "ACCESS_TOKEN"; var authHandler = azure.getPersonalAccessTokenHandler(accessToken); var connection = new azure.WebApi(orgUrl,

Import Repository from Github to Azure Repos

此生再无相见时 提交于 2019-12-11 15:33:54
问题 If I import a repository from Github to Azure repos using the import functionality in Azure Devops. Will it bring across all branches as they are on the server? Ow will i need to import each branch one at a time? 回答1: The default import functionality in Azure DevOps will import the entire repository, including all branches. so you'll only have to do a single import to get all the history in there 回答2: Yes it Does, it brings all branches across as is. I did a test 来源: https://stackoverflow.com

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

倖福魔咒の 提交于 2019-12-11 07:36:34
问题 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 be a lot of manual work and error prone to set the permission in every single branch for every repository. 回答1: If you navigate to the project settings, then select Repositories in the left pane, you can select the Git repositories root in the tree

Force a branch naming convention in Azure DevOps Git

匆匆过客 提交于 2019-12-05 04:28:51
We use Git hosted in Azure DevOps for all of our source code. So far we have used Git Hooks to ensure that team members follow a branch naming convention {branchtype}/{username}/{friendlyname}/{workitemtype}{workitemid} . Examples: dev/dparkar/addauth/ta123456 hf/jsmith/memoryleak/bu11111 The branch naming convention allow us to clearly understand whether it's a regular development branch or a hotfix branch and which work item it is associated with, among other things. To setup Git Hooks locally, team members were required to run a script locally before starting to contribute. This was fine as