OPC # 0009: Gitea and OPC Build Webhooks

This commit is contained in:
amadzarak
2026-04-26 16:12:00 -04:00
parent 2badb5264b
commit 13ff5eb926
15 changed files with 612 additions and 13 deletions
@@ -0,0 +1,23 @@
namespace ControlPlane.Core.Messages;
/// <summary>
/// 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.
/// </summary>
public record BuildRequestedCommand
{
/// <summary>Gitea repo name (e.g. "OPC" or "Clarity").</summary>
public string RepoName { get; init; } = string.Empty;
/// <summary>HEAD commit SHA of the push that triggered this build.</summary>
public string HeadSha { get; init; } = string.Empty;
/// <summary>Branch that was pushed to (e.g. "develop").</summary>
public string Branch { get; init; } = string.Empty;
/// <summary>
/// Relative path to the solution file to build, e.g. "ControlPlane.slnx".
/// Relative to the cloned repo root.
/// </summary>
public string SolutionPath { get; init; } = string.Empty;
}