Table of Contents

Class PushEventPayload

Namespace
Ando.Server.GitHub
Assembly
Ando.Server.dll

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

string

Before

Commit SHA before the push.

[JsonPropertyName("before")]
public string Before { get; init; }

Property Value

string

Branch

Gets the branch name from the ref (strips "refs/heads/" prefix).

[JsonIgnore]
public string Branch { get; }

Property Value

string

CommitSha

Gets the commit SHA being pushed.

[JsonIgnore]
public string CommitSha { get; }

Property Value

string

HeadCommit

Information about the head commit.

[JsonPropertyName("head_commit")]
public CommitInfo? HeadCommit { get; init; }

Property Value

CommitInfo

Installation

GitHub App installation that received this event.

[JsonPropertyName("installation")]
public InstallationInfo? Installation { get; init; }

Property Value

InstallationInfo

Pusher

User who pushed the commits.

[JsonPropertyName("pusher")]
public PusherInfo? Pusher { get; init; }

Property Value

PusherInfo

Ref

Git ref being pushed (e.g., "refs/heads/main").

[JsonPropertyName("ref")]
public string Ref { get; init; }

Property Value

string

Repository

Repository that received the push.

[JsonPropertyName("repository")]
public RepositoryInfo? Repository { get; init; }

Property Value

RepositoryInfo