Class PushEventPayload
Push event webhook payload.
public record PushEventPayload : IEquatable<PushEventPayload>
- Inheritance
-
PushEventPayload
- Implements
- Inherited Members
Properties
After
Commit SHA after the push (the new head).
[JsonPropertyName("after")]
public string After { get; init; }
Property Value
Before
Commit SHA before the push.
[JsonPropertyName("before")]
public string Before { get; init; }
Property Value
Branch
Gets the branch name from the ref (strips "refs/heads/" prefix).
[JsonIgnore]
public string Branch { get; }
Property Value
CommitSha
Gets the commit SHA being pushed.
[JsonIgnore]
public string CommitSha { get; }
Property Value
HeadCommit
Information about the head commit.
[JsonPropertyName("head_commit")]
public CommitInfo? HeadCommit { get; init; }
Property Value
Installation
GitHub App installation that received this event.
[JsonPropertyName("installation")]
public InstallationInfo? Installation { get; init; }
Property Value
Pusher
User who pushed the commits.
[JsonPropertyName("pusher")]
public PusherInfo? Pusher { get; init; }
Property Value
Ref
Git ref being pushed (e.g., "refs/heads/main").
[JsonPropertyName("ref")]
public string Ref { get; init; }
Property Value
Repository
Repository that received the push.
[JsonPropertyName("repository")]
public RepositoryInfo? Repository { get; init; }