add ref and type to job completion in run service (#3492)

* add ref and type to job completion in run service

* lint
This commit is contained in:
Yashwanth Anantharaju
2024-10-08 15:52:48 -04:00
committed by GitHub
parent aa0ee2bf64
commit 4d8402c260
2 changed files with 8 additions and 0 deletions

View File

@@ -508,6 +508,8 @@ namespace GitHub.Runner.Worker
Status = _record.State,
Number = _record.Order,
Name = _record.Name,
Ref = StepTelemetry?.Ref,
Type = StepTelemetry?.Type,
StartedAt = _record.StartTime,
CompletedAt = _record.FinishTime,
Annotations = new List<Annotation>()

View File

@@ -19,6 +19,12 @@ namespace GitHub.Actions.RunService.WebApi
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
[DataMember(Name = "ref", EmitDefaultValue = false)]
public string Ref { get; set; }
[DataMember(Name = "type", EmitDefaultValue = false)]
public string Type { get; set; }
[DataMember(Name = "status")]
public TimelineRecordState? Status { get; set; }