Public/Get-BitBucketRepoByProject.ps1

<#
.SYNOPSIS
    Gets the list of repos under given project.
.DESCRIPTION

.PARAMETER project
    Mandatory - project id
.EXAMPLE
    Get-BitBucketRepoByProject -Project "TES"
#>

function Get-BitBucketRepoByProject {
    [CmdletBinding()]param(
        [Parameter(Mandatory=$true,ParameterSetName='Project')]
        [ValidateNotNullOrEmpty()]
        [string]$Project
    )

    $Manifest = Invoke-BitBucketWebRequest -Resource "projects/$Project/repos?limit=1000" | ConvertFrom-Json
    #Write-Output "[List:] Repos under project - $Project"
    return $Manifest.values.name
}