forked from actions/runner
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send annotations to run-service (actions#2574)
* send annotations to run-service * skip message deletion * actually don't skip deletion * enum as numbers * fix enum * linting * remove unncessary file * feedback
- Loading branch information
1 parent
0db9b07
commit 7b629c8
Showing
13 changed files
with
332 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Sdk.RSWebApi.Contracts | ||
{ | ||
[DataContract] | ||
public struct Annotation | ||
{ | ||
[DataMember(Name = "level", EmitDefaultValue = false)] | ||
public AnnotationLevel Level; | ||
|
||
[DataMember(Name = "message", EmitDefaultValue = false)] | ||
public string Message; | ||
|
||
[DataMember(Name = "rawDetails", EmitDefaultValue = false)] | ||
public string RawDetails; | ||
|
||
[DataMember(Name = "path", EmitDefaultValue = false)] | ||
public string Path; | ||
|
||
[DataMember(Name = "isInfrastructureIssue", EmitDefaultValue = false)] | ||
public bool IsInfrastructureIssue; | ||
|
||
[DataMember(Name = "startLine", EmitDefaultValue = false)] | ||
public long StartLine; | ||
|
||
[DataMember(Name = "endLine", EmitDefaultValue = false)] | ||
public long EndLine; | ||
|
||
[DataMember(Name = "startColumn", EmitDefaultValue = false)] | ||
public long StartColumn; | ||
|
||
[DataMember(Name = "endColumn", EmitDefaultValue = false)] | ||
public long EndColumn; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Sdk.RSWebApi.Contracts | ||
{ | ||
[DataContract] | ||
public enum AnnotationLevel | ||
{ | ||
[EnumMember] | ||
UNKNOWN = 0, | ||
|
||
[EnumMember] | ||
NOTICE = 1, | ||
|
||
[EnumMember] | ||
WARNING = 2, | ||
|
||
[EnumMember] | ||
FAILURE = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.