Implement alpha foundation workflow and GitHub sync

This commit is contained in:
Meta Vens 2026-04-22 09:50:31 +01:00
commit 3fd655e1f2
37 changed files with 7352 additions and 365 deletions

View file

@ -5,4 +5,6 @@ public sealed class BootstrapOptions
public const string SectionName = "Bootstrap";
public string[] AdminGitHubLogins { get; init; } = [];
public bool ApplyMigrationsOnStartup { get; init; }
}

View file

@ -0,0 +1,26 @@
namespace Bifrost.Web.Configuration;
public sealed class GitHubAppOptions
{
public const string SectionName = "GitHubApp";
public string AppId { get; init; } = string.Empty;
public string ClientId { get; init; } = string.Empty;
public string ClientSecret { get; init; } = string.Empty;
public string PrivateKeyPem { get; init; } = string.Empty;
public string WebhookSecret { get; init; } = string.Empty;
public bool EnableWebhookSync { get; init; } = true;
public bool IsConfigured =>
!string.IsNullOrWhiteSpace(AppId) &&
!string.IsNullOrWhiteSpace(PrivateKeyPem) &&
!string.IsNullOrWhiteSpace(WebhookSecret);
public bool IsWebhookConfigured =>
!string.IsNullOrWhiteSpace(WebhookSecret);
}

View file

@ -0,0 +1,16 @@
namespace Bifrost.Web.Configuration;
public sealed class BifrostHostOptions
{
public const string SectionName = "Host";
public string PublicBaseUrl { get; init; } = string.Empty;
public string ExpectedHost { get; init; } = string.Empty;
public bool RequireStrictHostValidation { get; init; } = true;
public bool IsConfigured =>
Uri.TryCreate(PublicBaseUrl, UriKind.Absolute, out _) &&
!string.IsNullOrWhiteSpace(ExpectedHost);
}