Table of Contents

Class GitStatusResponse

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

The current Git repository and push status required by the admin UI.

public record GitStatusResponse : IEquatable<GitStatusResponse>
Inheritance
GitStatusResponse
Implements
Inherited Members

Constructors

GitStatusResponse(bool, bool, bool, string?, string?, DateTime?, GitPushStatus, string?)

The current Git repository and push status required by the admin UI.

public GitStatusResponse(bool GitAvailable, bool SshAvailable, bool HasUncommittedChanges, string? CurrentCommitSha, string? LastPushedCommitSha, DateTime? LastSuccessfulPushAt, GitPushStatus LastPushStatus, string? LastPushError)

Parameters

GitAvailable bool

A value indicating whether the Git executable is available.

SshAvailable bool

A value indicating whether the SSH executable is available.

HasUncommittedChanges bool

A value indicating whether the local repository has uncommitted changes.

CurrentCommitSha string

The current commit SHA.

LastPushedCommitSha string

The last commit SHA successfully pushed by this process.

LastSuccessfulPushAt DateTime?

The last successful push time.

LastPushStatus GitPushStatus

The last push status.

LastPushError string

The last push error.

Properties

CurrentCommitSha

The current commit SHA.

public string? CurrentCommitSha { get; init; }

Property Value

string

GitAvailable

A value indicating whether the Git executable is available.

public bool GitAvailable { get; init; }

Property Value

bool

HasUncommittedChanges

A value indicating whether the local repository has uncommitted changes.

public bool HasUncommittedChanges { get; init; }

Property Value

bool

LastPushError

The last push error.

public string? LastPushError { get; init; }

Property Value

string

LastPushStatus

The last push status.

public GitPushStatus LastPushStatus { get; init; }

Property Value

GitPushStatus

LastPushedCommitSha

The last commit SHA successfully pushed by this process.

public string? LastPushedCommitSha { get; init; }

Property Value

string

LastSuccessfulPushAt

The last successful push time.

public DateTime? LastSuccessfulPushAt { get; init; }

Property Value

DateTime?

SshAvailable

A value indicating whether the SSH executable is available.

public bool SshAvailable { get; init; }

Property Value

bool