diff --git a/build/regressions.blazor.config.yml b/build/regressions.blazor.config.yml index 3148b5c97..1ac31a7fa 100644 --- a/build/regressions.blazor.config.yml +++ b/build/regressions.blazor.config.yml @@ -68,7 +68,17 @@ templates: {%- if diff.RepositoryUrl == empty -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` {%- else -%} - {{ diff.RepositoryUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} + {%- assign repoUrl = diff.RepositoryUrl -%} + {%- comment -%} + Post-VMR (https://github.com/dotnet/dotnet), framework-level commits live in + dotnet/dotnet rather than the component repos. Rewrite the diff URL when the + dependency is one of the synthetic framework deps that Crank still records + with the legacy component-repo URL. + {%- endcomment -%} + {%- if diff.Names contains 'Microsoft.AspNetCore.App' or diff.Names contains 'Microsoft.NETCore.App' or repoUrl == 'https://github.com/dotnet/aspnetcore' or repoUrl == 'https://github.com/dotnet/runtime' -%} + {%- assign repoUrl = 'https://github.com/dotnet/dotnet' -%} + {%- endif -%} + {{ repoUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} {%- endif -%} {%- else -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` @@ -115,7 +125,17 @@ templates: {%- if diff.RepositoryUrl == empty -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` {%- else -%} - {{ diff.RepositoryUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} + {%- assign repoUrl = diff.RepositoryUrl -%} + {%- comment -%} + Post-VMR (https://github.com/dotnet/dotnet), framework-level commits live in + dotnet/dotnet rather than the component repos. Rewrite the diff URL when the + dependency is one of the synthetic framework deps that Crank still records + with the legacy component-repo URL. + {%- endcomment -%} + {%- if diff.Names contains 'Microsoft.AspNetCore.App' or diff.Names contains 'Microsoft.NETCore.App' or repoUrl == 'https://github.com/dotnet/aspnetcore' or repoUrl == 'https://github.com/dotnet/runtime' -%} + {%- assign repoUrl = 'https://github.com/dotnet/dotnet' -%} + {%- endif -%} + {{ repoUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} {%- endif -%} {%- else -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` diff --git a/build/regressions.config.yml b/build/regressions.config.yml index dc7f2ca03..2afe2a25a 100644 --- a/build/regressions.config.yml +++ b/build/regressions.config.yml @@ -205,7 +205,17 @@ templates: {%- if diff.RepositoryUrl == empty -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` {%- else -%} - {{ diff.RepositoryUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} + {%- assign repoUrl = diff.RepositoryUrl -%} + {%- comment -%} + Post-VMR (https://github.com/dotnet/dotnet), framework-level commits live in + dotnet/dotnet rather than the component repos. Rewrite the diff URL when the + dependency is one of the synthetic framework deps that Crank still records + with the legacy component-repo URL. + {%- endcomment -%} + {%- if diff.Names contains 'Microsoft.AspNetCore.App' or diff.Names contains 'Microsoft.NETCore.App' or repoUrl == 'https://github.com/dotnet/aspnetcore' or repoUrl == 'https://github.com/dotnet/runtime' -%} + {%- assign repoUrl = 'https://github.com/dotnet/dotnet' -%} + {%- endif -%} + {{ repoUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} {%- endif -%} {%- else -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` @@ -253,7 +263,17 @@ templates: {%- if diff.RepositoryUrl == empty -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` {%- else -%} - {{ diff.RepositoryUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} + {%- assign repoUrl = diff.RepositoryUrl -%} + {%- comment -%} + Post-VMR (https://github.com/dotnet/dotnet), framework-level commits live in + dotnet/dotnet rather than the component repos. Rewrite the diff URL when the + dependency is one of the synthetic framework deps that Crank still records + with the legacy component-repo URL. + {%- endcomment -%} + {%- if diff.Names contains 'Microsoft.AspNetCore.App' or diff.Names contains 'Microsoft.NETCore.App' or repoUrl == 'https://github.com/dotnet/aspnetcore' or repoUrl == 'https://github.com/dotnet/runtime' -%} + {%- assign repoUrl = 'https://github.com/dotnet/dotnet' -%} + {%- endif -%} + {{ repoUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} {%- endif -%} {%- else -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` @@ -300,7 +320,17 @@ templates: {%- if diff.RepositoryUrl == empty -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}` {%- else -%} - {{ diff.RepositoryUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} + {%- assign repoUrl = diff.RepositoryUrl -%} + {%- comment -%} + Post-VMR (https://github.com/dotnet/dotnet), framework-level commits live in + dotnet/dotnet rather than the component repos. Rewrite the diff URL when the + dependency is one of the synthetic framework deps that Crank still records + with the legacy component-repo URL. + {%- endcomment -%} + {%- if diff.Names contains 'Microsoft.AspNetCore.App' or diff.Names contains 'Microsoft.NETCore.App' or repoUrl == 'https://github.com/dotnet/aspnetcore' or repoUrl == 'https://github.com/dotnet/runtime' -%} + {%- assign repoUrl = 'https://github.com/dotnet/dotnet' -%} + {%- endif -%} + {{ repoUrl }}/compare/{{ diff.PreviousCommitHash }}...{{ diff.CurrentCommitHash }} {%- endif -%} {%- else -%} `{{ diff.PreviousCommitHash | slice: 0, 7 }}...{{ diff.CurrentCommitHash | slice: 0, 7 }}`