-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cgillum/master-db-access
- Loading branch information
Showing
5 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<Project> | ||
<!-- This is copied from:https://github.com/Azure/azure-functions-host/blob/dev/eng/build/RepositoryInfo.targets --> | ||
<!-- The following build target allows us to reconstruct source-link information when building in 1ES --> | ||
|
||
<!-- | ||
The convention for names of Azure DevOps repositories mirrored from GitHub is "{GitHub org name}.{GitHub repository name}". | ||
--> | ||
<PropertyGroup> | ||
<!-- There are quite a few git repo forms: | ||
https://azfunc@dev.azure.com/azfunc/internal/_git/azure.azure-functions-host | ||
https://dev.azure.com/azfunc/internal/_git/azure.azure-functions-host | ||
https://azfunc.visualstudio.com/internal/_git/azure.azure-functions-host | ||
azfunc@vs-ssh.visualstudio.com:v3/azfunc/internal/azure.azure-functions-host | ||
git@ssh.dev.azure.com:v3/azfunc/internal/azure.azure-functions-host | ||
--> | ||
<!-- Set DisableSourceLinkUrlTranslation to true when building a tool for internal use where sources only come from internal URIs --> | ||
<DisableSourceLinkUrlTranslation Condition="'$(DisableSourceLinkUrlTranslation)' == ''">false</DisableSourceLinkUrlTranslation> | ||
<_TranslateUrlPattern>(https://azfunc%40dev\.azure\.com/azfunc/internal/_git|https://dev\.azure\.com/azfunc/internal/_git|https://azfunc\.visualstudio\.com/internal/_git|azfunc%40vs-ssh\.visualstudio\.com:v3/azfunc/internal|git%40ssh\.dev\.azure\.com:v3/azfunc/internal)/([^/\.]+)\.(.+)</_TranslateUrlPattern> | ||
<_TranslateUrlReplacement>https://github.com/$2/$3</_TranslateUrlReplacement> | ||
</PropertyGroup> | ||
|
||
<!-- When building from Azure Devops we update SourceLink to point back to the GitHub repo. --> | ||
<Target Name="_TranslateAzureDevOpsUrlToGitHubUrl" | ||
Condition="'$(DisableSourceLinkUrlTranslation)' == 'false'" | ||
DependsOnTargets="$(SourceControlManagerUrlTranslationTargets)" | ||
BeforeTargets="SourceControlManagerPublishTranslatedUrls"> | ||
<PropertyGroup> | ||
<ScmRepositoryUrl>$([System.Text.RegularExpressions.Regex]::Replace($(ScmRepositoryUrl), $(_TranslateUrlPattern), $(_TranslateUrlReplacement)))</ScmRepositoryUrl> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<SourceRoot Update="@(SourceRoot)"> | ||
<ScmRepositoryUrl>$([System.Text.RegularExpressions.Regex]::Replace(%(SourceRoot.ScmRepositoryUrl), $(_TranslateUrlPattern), $(_TranslateUrlReplacement)))</ScmRepositoryUrl> | ||
</SourceRoot> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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