Skip to content

Commit

Permalink
Adjust github format to be more readable
Browse files Browse the repository at this point in the history
This patch changes to format to replace the \n that were not visible in the annotation with another more readable format.
And it removes the Exit code from the github annotation message.

Also updates the version to 0.1.4
  • Loading branch information
saibotk committed Jan 3, 2021
1 parent fdff7f8 commit fccb263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,12 @@ private static string formatGithub(string message, List<string> errors, string r
output += "file=" + (relPath ?? "?") + ",";
output += "line=" + (foundLine != null ? ((int)foundLine).ToString() : "?");
output += "::";
output += "Code (" + (exitCode != null ? ((int)exitCode).ToString() : "???") + ") ";
output += message + "\\n";
output += message;

if (errors != null)
output += "Errors: \\n";
output += " -->";
foreach (string error in errors)
output += error + "\\n";
output += " \"" + error + "\"";

// Also output human readable format for the log files
return output + "\n" + formatStandard(message, errors, relPath, foundLine, exitCode);
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("0.1.3.0")]
[assembly: AssemblyVersion("0.1.4.0")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down

0 comments on commit fccb263

Please sign in to comment.