namespace ControlPlane.Core.Messages;
///
/// API -> Worker: run dotnet build for the given repo at the given commit SHA.
/// Published when Gitea fires a push webhook for refs/heads/develop.
///
public record BuildRequestedCommand
{
/// Gitea repo name (e.g. "OPC" or "Clarity").
public string RepoName { get; init; } = string.Empty;
/// HEAD commit SHA of the push that triggered this build.
public string HeadSha { get; init; } = string.Empty;
/// Branch that was pushed to (e.g. "develop").
public string Branch { get; init; } = string.Empty;
///
/// Relative path to the solution file to build, e.g. "ControlPlane.slnx".
/// Relative to the cloned repo root.
///
public string SolutionPath { get; init; } = string.Empty;
}