mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
move formatting code to optional flag (#2085)
* move formatting code to flag * reformat code
This commit is contained in:
@@ -10,6 +10,7 @@ public class Context : FrostingContext
|
||||
public string Target { get; set; }
|
||||
public new string Configuration { get; set; }
|
||||
public bool LinkSources { get; set; }
|
||||
public bool FormatCode { get; set; }
|
||||
public BuildVersion Version { get; set; }
|
||||
|
||||
public DirectoryPath Artifacts { get; set; }
|
||||
|
||||
@@ -12,6 +12,7 @@ public class Lifetime : FrostingLifetime<Context>
|
||||
context.Target = context.Argument("target", "Default");
|
||||
context.Configuration = context.Argument("configuration", "Release");
|
||||
context.LinkSources = context.Argument("linkSources", false);
|
||||
context.FormatCode = context.Argument("formatCode", false);
|
||||
|
||||
context.Artifacts = "./packaging/";
|
||||
context.CodeCoverage = "./coverage-results/";
|
||||
|
||||
@@ -15,6 +15,6 @@ public sealed class FormatCode : FrostingTask<Context>
|
||||
|
||||
public override bool ShouldRun(Context context)
|
||||
{
|
||||
return context.IsLocalBuild;
|
||||
return context.FormatCode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user