mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
96df1a7d6c
* add sourcelink support * Update sourcelink (2.0.2 -> 2.1.0) * Add parameter to enable source linking * tidy up the arguments with an extension method allowing an argument to be conditionally appended * Add an explicit "test sourcelink" build task and remove the MSBuild one, so we can get some build script output without needing the whole build to be in verbose logging * run sourcelink test against the NuGet packages
11 lines
303 B
C#
11 lines
303 B
C#
using Cake.Core;
|
|
using Cake.Core.IO;
|
|
|
|
public static class CakeExtensions
|
|
{
|
|
public static ProcessArgumentBuilder AppendIfTrue(this ProcessArgumentBuilder builder, bool condition, string format, params object[] args)
|
|
{
|
|
return condition ? builder.Append(format, args) : builder;
|
|
}
|
|
}
|