Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #308 from cake-contrib/dependabot/nuget/src/Cake.I…
Browse files Browse the repository at this point in the history
…ssues-0.9.0-beta0004

Bump Cake.Issues from 0.9.0-beta0002 to 0.9.0-beta0004 in /src
  • Loading branch information
pascalberger authored Aug 1, 2020
2 parents f73c6fd + 4cbf435 commit 773a391
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Cake.Testing" Version="0.33.0" />
<PackageReference Include="Cake.Issues.Testing" Version="0.9.0-beta0002" />
<PackageReference Include="Cake.Issues.Testing" Version="0.9.0-beta0004" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.24" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<PackageReference Include="Gazorator" Version="0.5.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Cake.Core" Version="0.33.0" />
<PackageReference Include="Cake.Issues" Version="0.9.0-beta0002" />
<PackageReference Include="Cake.Issues.Reporting" Version="0.9.0-beta0001" />
<PackageReference Include="Cake.Issues" Version="0.9.0-beta0004" />
<PackageReference Include="Cake.Issues.Reporting" Version="0.9.0-beta0002" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers">
<PrivateAssets>all</PrivateAssets>
<Version>3.0.0</Version>
Expand Down
4 changes: 2 additions & 2 deletions src/Cake.Issues.Reporting.Generic/IIssueExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public static ExpandoObject GetExpandoObject(
fallbackToTextMessageIfMarkdownMessageNotAvailable ? issue.Message(IssueCommentFormat.Markdown) : issue.MessageMarkdown;
}

if (fileLinkSettings != null && !string.IsNullOrEmpty(fileLinkSettings.FileLinkPattern))
if (fileLinkSettings != null)
{
result.FileLink = fileLinkSettings.FileLinkPattern.ReplaceIssuePattern(issue);
result.FileLink = fileLinkSettings.GetFileLink(issue);
}

if (additionalValues != null)
Expand Down
4 changes: 2 additions & 2 deletions src/Cake.Issues.Reporting.Generic/Templates/DxDataGrid.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
ColumnSortOrder messageSortOrder = ViewBagHelper.ValueOrDefault(ViewBag.MessageSortOder, ColumnSortOrder.Ascending);
var groupedColumns = ViewBagHelper.ValueOrDefault(ViewBag.GroupedColumns, new List<ReportColumn> { ReportColumn.ProviderName });
var sortedColumns = ViewBagHelper.ValueOrDefault(ViewBag.SortedColumns, new List<ReportColumn> { ReportColumn.PriorityName, ReportColumn.ProjectName, ReportColumn.FileDirectory, ReportColumn.FileName, ReportColumn.Line });
FileLinkSettings fileLinkSettings = ViewBagHelper.ValueOrDefault(ViewBag.FileLinkSettings, new FileLinkSettings());
FileLinkSettings fileLinkSettings = ViewBagHelper.ValueOrDefault<FileLinkSettings>(ViewBag.FileLinkSettings, null);
IdeIntegrationSettings ideIntegrationSettings = ViewBagHelper.ValueOrDefault<IdeIntegrationSettings>(ViewBag.IdeIntegrationSettings, null);
List<HtmlDxDataGridColumnDescription> additionalColumns = ViewBagHelper.ValueOrDefault(ViewBag.AdditionalColumns, new List<HtmlDxDataGridColumnDescription>());
string jQueryLocation = ViewBagHelper.ValueOrDefault(ViewBag.JQueryLocation, "https://ajax.aspnetcdn.com/ajax/jquery/").Trim();
Expand Down Expand Up @@ -417,7 +417,7 @@
@:sortIndex: @sortedColumns.IndexOf(ReportColumn.Line),
@:sortOrder: "@lineSortOrder.ToShortString()",
}
@if (fileLinkSettings != null && !string.IsNullOrWhiteSpace(fileLinkSettings.FileLinkPattern))
@if (fileLinkSettings != null)
{
<text>
cellTemplate: function (container, options) {
Expand Down

0 comments on commit 773a391

Please sign in to comment.