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

@ -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);
}