OPC # 0009: Gitea and OPC Build Webhooks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user