2020-09-04 20:53:01 +03:00
|
|
|
$RepoRoot = Resolve-Path "${PSScriptRoot}..\..\..\.."
|
|
|
|
$EngDir = Join-Path $RepoRoot "eng"
|
|
|
|
$EngCommonDir = Join-Path $EngDir "common"
|
|
|
|
$EngCommonScriptsDir = Join-Path $EngCommonDir "scripts"
|
|
|
|
$EngScriptsDir = Join-Path $EngDir "scripts"
|
2020-07-29 03:39:30 +03:00
|
|
|
|
|
|
|
# Import required scripts
|
2020-09-04 20:53:01 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir SemVer.ps1)
|
|
|
|
. (Join-Path $EngCommonScriptsDir ChangeLog-Operations.ps1)
|
|
|
|
. (Join-Path $EngCommonScriptsDir Package-Properties.ps1)
|
2020-09-16 20:04:01 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir logging.ps1)
|
2020-10-13 03:14:16 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir Invoke-GitHubAPI.ps1)
|
2020-11-19 08:50:41 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir Invoke-DevOpsAPI.ps1)
|
2020-10-20 00:58:13 +03:00
|
|
|
. (Join-Path $EngCommonScriptsDir artifact-metadata-parsing.ps1)
|
2020-07-29 03:39:30 +03:00
|
|
|
|
|
|
|
# Setting expected from common languages settings
|
2020-09-04 20:53:01 +03:00
|
|
|
$Language = "Unknown"
|
|
|
|
$PackageRepository = "Unknown"
|
|
|
|
$packagePattern = "Unknown"
|
|
|
|
$MetadataUri = "Unknown"
|
2020-07-29 03:39:30 +03:00
|
|
|
|
|
|
|
# Import common language settings
|
2020-09-04 20:53:01 +03:00
|
|
|
$EngScriptsLanguageSettings = Join-path $EngScriptsDir "Language-Settings.ps1"
|
2020-07-29 03:39:30 +03:00
|
|
|
if (Test-Path $EngScriptsLanguageSettings) {
|
|
|
|
. $EngScriptsLanguageSettings
|
|
|
|
}
|
2021-01-22 03:48:11 +03:00
|
|
|
|
2021-03-03 23:24:16 +03:00
|
|
|
if (!(Get-Variable -Name "LanguageShort" -ValueOnly -ErrorAction "Ignore"))
|
2020-09-04 20:53:01 +03:00
|
|
|
{
|
2021-03-03 23:24:16 +03:00
|
|
|
$LanguageShort = $Language
|
2020-09-04 20:53:01 +03:00
|
|
|
}
|
2020-07-29 03:39:30 +03:00
|
|
|
|
2021-02-27 05:46:39 +03:00
|
|
|
if (!(Get-Variable -Name "LanguageDisplayName" -ValueOnly -ErrorAction "Ignore"))
|
2021-01-22 03:48:11 +03:00
|
|
|
{
|
|
|
|
$LanguageDisplayName = $Language
|
|
|
|
}
|
|
|
|
|
2020-07-29 03:39:30 +03:00
|
|
|
# Transformed Functions
|
|
|
|
$GetPackageInfoFromRepoFn = "Get-${Language}-PackageInfoFromRepo"
|
|
|
|
$GetPackageInfoFromPackageFileFn = "Get-${Language}-PackageInfoFromPackageFile"
|
2020-11-19 08:50:41 +03:00
|
|
|
$PublishGithubIODocsFn = "Publish-${Language}-GithubIODocs"
|
2021-05-27 01:15:31 +03:00
|
|
|
$UpdateDocsMsPackagesFn = "Update-${Language}-DocsMsPackages"
|
2020-12-18 00:52:15 +03:00
|
|
|
$GetGithubIoDocIndexFn = "Get-${Language}-GithubIoDocIndex"
|
2021-05-27 01:15:31 +03:00
|
|
|
$FindArtifactForApiReviewFn = "Find-${Language}-Artifacts-For-Apireview"
|