Skip to content

Commit

Permalink
chore: update usages
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Nov 21, 2024
1 parent f85be1b commit b2b0397
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 46 deletions.
8 changes: 4 additions & 4 deletions build/Build.Announce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ partial class Build
.Executes(async () =>
{
await SendSlackMessageAsync(_ => _
.AddAttachment(_ => _
.AddAttachments(_ => _
.SetFallback(AnnouncementTitle)
.SetAuthorName(AnnouncementTitle)
.SetAuthorLink(AnnouncementLink)
Expand Down Expand Up @@ -118,10 +118,10 @@ await SendSlackMessageAsync(_ => _
{
await SendDiscordMessageAsync(_ => _
.SetContent("@everyone")
.AddEmbed(_ => _
.AddEmbeds(_ => _
.SetTitle(AnnouncementTitle)
.SetColor(AnnouncementColor)
.SetThumbnail(new DiscordEmbedThumbnail()
.SetThumbnail(_ => _
.SetUrl(AnnouncementThumbnailUrl))
.SetDescription(new StringBuilder()
.Append($"This new release includes *[{AnnouncementGitInfo.CommitsText}]({AnnouncementComparisonUrl})*")
Expand All @@ -133,7 +133,7 @@ await SendDiscordMessageAsync(_ => _
.AppendLine()
.AppendLine(AnnouncementReleaseNotes).ToString()
.Replace("*", "**"))
.SetFooter(new DiscordEmbedFooter()
.SetFooter(_ => _
.SetText($"Powered by {AnnouncementSponsors.Select(x => x.Text).JoinCommaAnd()}.")
.SetIconUrl("https://cdn.discordapp.com/emojis/674275938757771306.webp?size=240&quality=lossless"))),
DiscordWebhook);
Expand Down
2 changes: 1 addition & 1 deletion build/Build.GitFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ partial class Build
.SetUrl(RootDirectory)
.SetBranch(MasterBranch)
.EnableNoFetch()
.DisableProcessLogOutput()).Result;
.DisableProcessOutputLogging()).Result;

if (!GitRepository.IsOnHotfixBranch())
Checkout($"{HotfixBranchPrefix}/{masterVersion.Major}.{masterVersion.Minor}.{masterVersion.Patch + 1}", start: MasterBranch);
Expand Down
1 change: 1 addition & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Utilities;
using Nuke.Components;
using static Nuke.Common.ControlFlow;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
Expand Down
1 change: 1 addition & 0 deletions source/Nuke.Components/ICompile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Utilities;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

Expand Down
1 change: 1 addition & 0 deletions source/Nuke.Components/IPack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Nuke.Common.IO;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Utilities;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

Expand Down
1 change: 1 addition & 0 deletions source/Nuke.Components/IReportCoverage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Nuke.Common.Tooling;
using Nuke.Common.Tools.Codecov;
using Nuke.Common.Tools.ReportGenerator;
using Nuke.Common.Utilities;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.Tools.Codecov.CodecovTasks;
using static Nuke.Common.Tools.ReportGenerator.ReportGeneratorTasks;
Expand Down
1 change: 1 addition & 0 deletions source/Nuke.Components/ITest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Nuke.Common.Tooling;
using Nuke.Common.Tools.Coverlet;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Utilities;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

Expand Down
25 changes: 0 additions & 25 deletions source/Nuke.Components/ToolSettingsExtensions.cs

This file was deleted.

16 changes: 0 additions & 16 deletions source/Nuke.SourceGenerators/Shims/Extensions.cs

This file was deleted.

0 comments on commit b2b0397

Please sign in to comment.