Implement alpha foundation workflow and GitHub sync
This commit is contained in:
parent
5d62ea2df4
commit
3fd655e1f2
37 changed files with 7352 additions and 365 deletions
26
src/Bifrost.Web/Configuration/GitHubAppOptions.cs
Normal file
26
src/Bifrost.Web/Configuration/GitHubAppOptions.cs
Normal 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);
|
||||
}
|
||||
Loading…
Reference in a new issue