Skip to content

Commit

Permalink
feat: Add actor and triggering_actor
Browse files Browse the repository at this point in the history
Add the `actor` and `triggering_actor` properties to WorkflowRun.
  • Loading branch information
martincostello committed Mar 28, 2022
1 parent 1e4dfb1 commit 55a8061
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Octokit.Webhooks/Models/WorkflowRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,17 @@ public sealed record WorkflowRun
[JsonPropertyName("workflow_url")]
public string WorkflowUrl { get; init; } = null!;

[JsonPropertyName("actor")]
public User Actor { get; init; } = null!;

[JsonPropertyName("run_attempt")]
public long RunAttempt { get; init; }

[JsonPropertyName("run_started_at")]
[JsonConverter(typeof(DateTimeOffsetConverter))]
public DateTimeOffset RunStartedAt { get; init; }

[JsonPropertyName("triggering_actor")]
public User TriggeringActor { get; init; } = null!;
}
}

0 comments on commit 55a8061

Please sign in to comment.