Skip to content

CommunityEndpoints

Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.

public sealed record CommunityEndpoints

Where the community gallery lives. Only the API and uploads hosts ever receive the person's token.

Constructors

CommunityEndpoints(string, Uri, Uri, Uri, string, string)

public CommunityEndpoints(string GalleryRepo, Uri IndexUrl, Uri ApiBase, Uri UploadsBase, string ClientId, string ActionsBot = "github-actions[bot]");

Parameters

  • GalleryRepo (string) - The gallery repository, owner/name.
  • IndexUrl (Uri) - The published list (served from Pages; fetched without a token).
  • ApiBase (Uri) - The GitHub REST API root.
  • UploadsBase (Uri) - The GitHub release-upload root.
  • ClientId (string) - The OAuth app's public client id.
  • ActionsBot (string) - The login whose pull request comments are the gallery's checks; any other commenter is ignored.

Properties

ActionsBot

public string ActionsBot { get; init; }

The login whose pull request comments are the gallery's checks; any other commenter is ignored.

ApiBase

public Uri ApiBase { get; init; }

The GitHub REST API root.

ClientId

public string ClientId { get; init; }

The OAuth app's public client id.

Default

public static CommunityEndpoints Default { get; }

The shipped gallery: vaporsoft-dev/nfty-gallery, signed in through the vaporsoft-dev OAuth app (device flow, no client secret — the id is public by design).

GalleryRepo

public string GalleryRepo { get; init; }

The gallery repository, owner/name.

IndexUrl

public Uri IndexUrl { get; init; }

The published list (served from Pages; fetched without a token).

UploadsBase

public Uri UploadsBase { get; init; }

The GitHub release-upload root.