This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install module (if not already installed) | |
| Install-Module -Name Azure.DevOps.PSModule -Scope CurrentUser -Force | |
| # Set session defaults | |
| Set-AdoDefault -Organization 'e2egov-org' -Project 'e2egov-prjHb72x9' | |
| # Pushing an initial commit to repository with multiple files | |
| $params = @{ | |
| RepositoryName = 'e2egov-prjHb72x9-repo' | |
| BranchName = 'main' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install module (if not already installed) | |
| Install-Module -Name Azure.DevOps.PSModule -Scope CurrentUser -Force | |
| # Set session defaults | |
| Set-AdoDefault -Organization 'e2egov-org' -Project 'e2egov-prjHb72x9' | |
| # Retrieves all repositories from default project | |
| Get-AdoRepository | |
| # Retrieve repository by name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install module (if not already installed) | |
| Install-Module -Name Azure.DevOps.PSModule -Scope CurrentUser -Force | |
| # Set session defaults | |
| Set-AdoDefault -Organization 'e2egov-org' -Project 'e2egov-prjHb72x9' | |
| # Retrieve feature states for default project | |
| Get-AdoFeatureState | |
| # Set feature state for Boards to 'disabled' for default project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install module (if not already installed) | |
| Install-Module -Name Azure.DevOps.PSModule -Scope CurrentUser -Force | |
| # Set session defaults | |
| Set-AdoDefault -Organization 'e2egov-org' | |
| # Create a project, bypass confirmation | |
| $params = @{ | |
| Name = 'e2egov-prjHb72x9' | |
| Description = 'Default project description' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set these: | |
| $SRC = 'msc365/az-devops-psmodule' | |
| $DST = 'msc365/az-devops-governance' | |
| # Requires: GitHub CLI (`gh`) | |
| $labels = gh api "repos/$SRC/labels" --paginate | ConvertFrom-Json | |
| foreach ($l in $labels) { | |
| $name = $l.name | |
| $color = $l.color | |
| $desc = $l.description |