• NeonSDK
  • NeonKUBE
Search Results for

    Show / Hide Table of Contents
    • Neon
      • Build
    • Neon.Blazor
      • BlazorHelper
      • BodyOutlet
      • ClientRenderContext
      • DOMRectReadOnly
      • EventHandlers
      • FileDownloader
      • HtmlElement
      • IRenderContext
      • IntersectionChangedEventArgs
      • IntersectionObserver
      • IntersectionObserverContext
      • MobileDetector
      • NeonBlazorExtensions
      • ServerRenderContext
      • SwipeDirection
      • SwipeHandler
    • Neon.Blazor.Analyzers
      • SvgGenerator
      • SvgGenerator.Svg
    • Neon.BuildInfo
      • ThisAssembly
      • ThisAssembly.Git
      • ThisAssembly.Git.BaseVersion
      • ThisAssembly.Git.SemVer
    • Neon.CSharp
      • CSharpHelper
      • CompilerErrorException
      • MetadataReferences
    • Neon.Cassandra
      • KeyspaceStatus
      • RowSetExtensions
      • SchemaManager
      • SchemaManagerException
      • SchemaStatus
      • SessionExtensions
    • Neon.Collections
      • ArgDictionary
      • Bits
      • IObjectDictionary
      • NiceDictionary<TKey, TValue>
      • ObjectDictionary
    • Neon.Common
      • AppDomainExtensions
      • Block
      • BlockArray
      • ByteEncoding
      • ByteUnits
      • CommandLine
      • CommandLine.OptionDefinition
      • CommandLine.Redactor
      • CpuArchitecture
      • Credentials
      • DateTimeExtensions
      • EnumExtensions
      • EnvironmentParser
      • EnvironmentParser.Parser<T>
      • EnvironmentParser.Validator<T>
      • EnvironmentParser.VariableSource
      • ExceptionExtensions
      • ExecuteException
      • ExecuteResponse
      • GlobPattern
      • HexDumpOption
      • HttpClientExtensions
      • HttpResponseMessageExtensions
      • IEnumerableExtensions
      • ILabeled
      • IOExtensions
      • IServiceContainer
      • IStaticDirectoryExtensions
      • LabelSelector
      • LabelSelectorOptions
      • LabelSelector<TItem>
      • NeonAssemblyExtensions
      • NeonExtendedHelper
      • NeonHelper
      • NetFramework
      • NewtonsoftExtensions
      • NotReadyException
      • ProcessExtensions
      • ProgramEntrypoint
      • ProgramEntrypointAsync
      • ProgramExitException
      • ProgramRunner
      • RandomExtensions
      • ReflectionExtensions
      • SemanticVersion
      • ServiceContainer
      • StaticZipOptions
      • StringBuilderExtensions
      • StringExtensions
      • Stub
      • Stub.Value
      • TaskExtensions
      • TimeSpanExtensions
      • ToolException
      • TriState
      • WeakEventController
      • WindowsEdition
      • WindowsFeatureStatus
      • YamlDotNetExtensions
    • Neon.Cryptography
      • AesCipher
      • CryptoExtensions
      • CryptoHelper
      • NeonVault
      • Wildcard
    • Neon.Csv
      • CsvReader
      • CsvTableReader
      • CsvTableWriter
      • CsvWriter
    • Neon.Data
      • DateTimeJsonConverter
      • DateTimeOffsetJsonConverter
      • IEnhancedJsonConverter
      • IGeneratedServiceClient
      • IPersistableType
      • IPersistableType<T>
      • IRoundtripData
      • IntegerEnumConverter<TEnum>
      • NotifyPropertyChanged
      • RoundtripDataFactory
      • RoundtripDataHelper
      • TimeSpanJsonConverter
      • VersionJsonConverter
    • Neon.Deployment
      • AwsCli
      • DeploymentException
      • DeploymentHelper
      • DownloadManifest
      • DownloadPart
      • DownloadProgressDelegate
      • DownloadProgressType
      • GitHub
      • GitHubActionsApi
      • GitHubPackage
      • GitHubPackageApi
      • GitHubPackageType
      • GitHubPackageVersion
      • GitHubPackageVisibility
      • GitHubReleaseApi
      • GitHubRepoPath
      • GitHubTagApi
      • IProfileClient
      • IProfileRequest
      • IProfileResponse
      • MaintainerProfile
      • NotifyClient
      • OnePassword
      • OnePasswordException
      • ProfileException
      • ProfileHandlerResult
      • ProfileRequest
      • ProfileResponse
      • ProfileServer
      • ProfileStatus
      • XenServer
    • Neon.Deployment.CodeSigning
      • AzureProfile
      • CodeSigner
      • UsbTokenProfile
    • Neon.Diagnostics
      • AssertException
      • ConfigExtensions
      • ConsoleJsonLogExporter
      • ConsoleJsonLogExporterOptions
      • ConsoleTextLogExporter
      • ConsoleTextLogExporterOptions
      • ExceptionInfo
      • FileLogExporter
      • FileLogExporterFormat
      • FileLogExporterOptions
      • LogAsTraceProcessor
      • LogAsTraceProcessorOptions
      • LogAttributeNames
      • LogAttributes
      • LogEvent
      • LogEventInterceptor
      • LoggerExtensions
      • NullLogger
      • TelemetryHub
      • TelemetrySpanEventNames
      • TelemetrySpanExtensions
    • Neon.Docker
      • DockerClient
      • DockerNetwork
      • DockerNetworkContainer
      • DockerNetworkIpam
      • DockerNode
      • DockerNodeManagerStatus
      • DockerResponse
      • DockerSettings
      • DockerVolume
      • NetworkCreateResponse
      • ServiceBindOptions
      • ServiceConfig
      • ServiceContainerSpec
      • ServiceCredentialSpec
      • ServiceDetails
      • ServiceDiscreteResourceSpec
      • ServiceDnsConfig
      • ServiceEndpoint
      • ServiceEndpointMode
      • ServiceEndpointPortConfig
      • ServiceEndpointSpec
      • ServiceFile
      • ServiceGenericResources
      • ServiceGlobalSchedulingMode
      • ServiceHealthCheck
      • ServiceIsolationMode
      • ServiceListResponse
      • ServiceLogDriver
      • ServiceMode
      • ServiceMount
      • ServiceMountBindPropagation
      • ServiceMountConsistency
      • ServiceMountType
      • ServiceNamedResourceSpec
      • ServiceNetwork
      • ServicePlacement
      • ServicePlacementPreferences
      • ServicePlacementSpreadSettings
      • ServicePlatform
      • ServicePortMode
      • ServicePortProtocol
      • ServicePrivileges
      • ServiceReplicatedSchedulingMode
      • ServiceResourceSettings
      • ServiceResources
      • ServiceRestartCondition
      • ServiceRestartPolicy
      • ServiceRollbackConfig
      • ServiceRollbackFailureAction
      • ServiceRollbackOrder
      • ServiceSELinuxContext
      • ServiceSchedulingMode
      • ServiceSecret
      • ServiceSpec
      • ServiceTaskTemplate
      • ServiceTmpfsOptions
      • ServiceUpdateConfig
      • ServiceUpdateFailureAction
      • ServiceUpdateOrder
      • ServiceUpdateState
      • ServiceUpdateStatus
      • ServiceVersion
      • ServiceVirtualIP
      • ServiceVolumeDriverConfig
      • ServiceVolumeOptions
      • VolumeListResponse
    • Neon.GitHub
      • GitExtensions
      • GitHubCredentials
      • GitHubRepo
      • LocalRepoApi
      • NoLocalRepositoryException
      • RemoteRepoApi
      • RemoteRepoBranchApi
      • RemoteRepoIssueApi
      • RemoteRepoIssueCommentApi
      • RemoteRepoPath
      • RemoteRepoReleaseApi
      • RemoteRepoTagApi
    • Neon.HyperV
      • HyperVClient
      • HyperVDriverType
      • HyperVException
      • NetAdapter
      • VirtualDrive
      • VirtualIPAddress
      • VirtualMachine
      • VirtualMachineNetworkAdapter
      • VirtualMachineState
      • VirtualNat
      • VirtualSwitch
      • VirtualSwitchType
    • Neon.IO
      • BlockStream
      • FixedLengthStream
      • IStaticDirectory
      • IStaticFile
      • LineEnding
      • LinuxPath
      • LinuxPermissions
      • PreprocessReader
      • RelayStream
      • StaticDirectoryBase
      • StaticFileBase
      • SubStream
      • TempFile
      • TempFolder
    • Neon.JsonConverters
      • JsonDateTimeConverter
      • JsonGenericConverter<T>
      • JsonNullableDateTimeConverter
    • Neon.ModelGen
      • ActionResult<T>
      • ApiVersion
      • ApiVersionAttribute
      • BodyStreamAttribute
      • ControllerValidationAttribute
      • DataModelAttribute
      • EnumMember
      • FromBodyAttribute
      • FromHeaderAttribute
      • FromQueryAttribute
      • FromRouteAttribute
      • GeneratedClientAttribute
      • GeneratedMethodAttribute
      • GeneratedParamAttribute
      • HashSourceAttribute
      • HttpAttribute
      • HttpDeleteAttribute
      • HttpGetAttribute
      • HttpHeadAttribute
      • HttpOptionsAttribute
      • HttpPatchAttribute
      • HttpPostAttribute
      • HttpPutAttribute
      • IActionResult
      • ModelGenerator
      • ModelGeneratorOutput
      • ModelGeneratorSettings
      • NoCodeGenAttribute
      • NoControllerValidationAttribute
      • PassAs
      • PersistableAttribute
      • PersistableKeyAttribute
      • RouteAttribute
      • ServiceModelAttribute
      • TargetAttribute
      • UxFrameworks
    • Neon.Net
      • HttpApiException
      • HttpException
      • JsonClient
      • JsonClientPayload
      • JsonResponse
      • Jwt
      • LocalHostSection
      • NetConst
      • NetHelper
      • NetworkCidr
      • NetworkConfiguration
      • NetworkException
      • NetworkPorts
      • Pinger
      • ReachableHost
      • ReachableHostMode
      • StreamDocument
    • Neon.Postgres
      • ConnectionExtensions
      • DatabaseStatus
      • PreparedCommand
      • ReaderAsyncEnumerator
      • ReaderEnumerator
      • ReaderExtensions
      • SchemaManager
      • SchemaManagerException
      • SchemaStatus
    • Neon.Retry
      • ExponentialRetryPolicy
      • IRetryPolicy
      • LinearRetryPolicy
      • NoRetryPolicy
      • RetryPolicy
      • RetryPolicyBase
      • RetryTransientArgs
      • TransientDetector
      • TransientException
    • Neon.Roslyn
      • DisplayFormat
      • DocumentationComment
      • DocumentationItem
      • MetadataLoadContext
      • RoslynAssembly
      • RoslynConstructorInfo
      • RoslynCustomAttributeData
      • RoslynExtensions
      • RoslynFieldInfo
      • RoslynMethodInfo
      • RoslynParameterInfo
      • RoslynPropertyInfo
      • RoslynType
      • SharedUtilities
    • Neon.Roslyn.Xunit
      • AdditionalSourceText
      • CompilationOptions
      • CompilationOptionsProvider
      • TestCompilation
      • TestCompilationAssertions
      • TestCompilationBuilder
      • TestCompilationBuilderExtensions
      • TestCompilationExtensions
    • Neon.SSH
      • CommandBundle
      • CommandFile
      • CommandResponse
      • HostFolders
      • IBashCommandFormatter
      • ILinuxSshProxy
      • LinuxDiskInfo
      • LinuxDiskPartition
      • LinuxSshProxy
      • LinuxSshProxy<TMetadata>
      • NamespaceDoc
      • RemoteCommandException
      • RunOptions
      • SshCredentials
      • SshExtensions
      • SshProxyException
    • Neon.Service
      • LogMetricsProcessor
      • MetricsMode
      • MetricsOptions
      • NeonService
      • NeonServiceOptions
      • NeonServiceStatus
      • OtelConfigExtensions
      • OtlpCollectorChecker
      • ProcessTerminator
      • ServiceApiContact
      • ServiceApiInfo
      • ServiceApiLicense
      • ServiceDependencies
      • ServiceDescription
      • ServiceEndpoint
      • ServiceEndpointProtocol
      • ServiceEndpoints
      • ServiceMap
    • Neon.SignalR
      • DependencyInjectionExtensions
      • DnsCache
      • GroupAction
      • GroupCommand
      • IDnsCache
      • Invocation
      • NatsHubLifetimeManager<THub>
      • ProxyConfig
      • ServiceCollectionExtensions
      • ServiceDiscovey
      • SignalrProxyMiddleware
      • SignalrProxyMiddlewareExtensions
      • TracerProviderBuilderExtensions
    • Neon.Tailwind
      • ClickOffEventHandler
      • ComponentEventArgs<TSender>
      • ComponentEventArgs<TSender, TEventArgs>
      • DisclosureState
      • EventHandlerComponentBase<TComponent>
      • HeadlessButton
      • HeadlessDialog
      • HeadlessDialogPanel
      • HeadlessDisclosure
      • HeadlessDisclosureButton
      • HeadlessDisclosurePanel
      • HeadlessListboxButton<TValue>
      • HeadlessListboxLabel<TValue>
      • HeadlessListboxOption<TValue>
      • HeadlessListboxOptions<TValue>
      • HeadlessListbox<TValue>
      • HeadlessMenu
      • HeadlessMenuButton
      • HeadlessMenuItem
      • HeadlessMenuItems
      • HeadlessSwitch
      • HeadlessSwitchGroup
      • HeadlessSwitchLabel
      • IPortalBinder
      • KeyDownEventHandler
      • KeyboardKey
      • ListboxFocus
      • ListboxState
      • MenuFocus
      • MenuState
      • Portal
      • PortalBinder
      • PortalContent
      • SearchAssistant
      • TailwindExtensions
      • Transition
      • TransitionGroup
      • TransitionState
    • Neon.Tasks
      • Async
      • AsyncAutoResetEvent
      • AsyncManualResetEvent
      • AsyncMutex
      • AsyncPeriodicTask
      • AsyncReaderWriterLock
      • AsyncReentrantMutex
      • AsyncTimer
      • IAsyncFuture
      • IAsyncFuture<T>
      • NonDisposableTask
      • NonDisposableTask<T>
      • SyncContext
      • SyncContextMode
    • Neon.Temporal
      • ActivityHelper
      • ActivityLogEnricher
      • TemporalEnricherTagNames
      • WorkflowLogEnricher
    • Neon.Time
      • GatedTimer
      • GoDuration
      • PolledTimer
      • RecurringTimer
      • RecurringTimerType
      • SysTime
      • TimeOfDay
    • Neon.WSL
      • Wsl2Proxy
    • Neon.Web
      • AesProtector
      • DataProtectionExtensions
      • NeonController
      • NeonControllerBase
      • RoundTripJsonInputFormatter
      • RoundTripJsonOutputFormatter
      • TracerProviderBuilderExtensions
      • WebHelper
    • Neon.WinTTY
      • ConsoleTTY
    • Neon.Windows
      • MEMORYSTATUSEX
      • PowerShellException
      • Win32
    • Neon.XenServer
      • IXenClient
      • XenClient
      • XenClient.MachineOperations
      • XenClient.StorageOperations
      • XenClient.TemplateOperations
      • XenException
      • XenHostInfo
      • XenObject
      • XenResponse
      • XenStorageRepository
      • XenTempIso
      • XenTemplate
      • XenVirtualDisk
      • XenVirtualMachine
      • XenVmPowerState
    • Neon.Xunit
      • AnsiblePlayResults
      • AnsiblePlayer
      • AnsibleTaskResult
      • AspNetFixture
      • BasicFixture
      • CodeFixture
      • CollectionComparer<T>
      • ComposedFixture
      • ContainerFixture
      • ContainerLimits
      • DockerComposeFixture
      • DockerFixture
      • DockerFixture.ConfigInfo
      • DockerFixture.ContainerInfo
      • DockerFixture.NetworkInfo
      • DockerFixture.SecretInfo
      • DockerFixture.ServiceInfo
      • DockerFixture.StackDefinition
      • DockerFixture.StackInfo
      • DockerFixture.StackService
      • EnvironmentFixture
      • HostsFixture
      • ITestFixture
      • IncompatibleServiceException
      • MaintainerFactAttribute
      • MaintainerTheoryAttribute
      • MockHttpServer
      • MockHttpServerExtensions
      • NatsFixture
      • NatsStreamingFixture
      • NeonServiceFixture<TService>
      • PlatformFactAttribute
      • RepeatAttribute
      • TargetPlatforms
      • TestArea
      • TestCollection
      • TestContext
      • TestFixture
      • TestFixtureStatus
      • TestHelper
      • TestHttpClient
      • TestOutputWriter
      • TestTrait
      • XunitExtensions
    • Neon.Xunit.YugaByte
      • YugaByteFixture
    • Neon.YugaByte
      • YugaByteHelper

    Class GitHubRepo

    Wraps a Octokit.GitHubClient and LibGit2Sharp.Repository into a single object that provides easy to use high-level methods while also including properties for the GitHub server, remote GitHub repository, as well as the local git repository,

    note

    GitHubRepo implements IDisposable and instances should be disposed when you're done with them.

    Inheritance
    object
    GitHubRepo
    Namespace: Neon.GitHub
    Assembly: Neon.GitHub.dll
    Syntax
    public class GitHubRepo
    Remarks

    To clone a GitHub repository, call the static CloneAsync(string, string, string, string, string, string, string, string, IProfileClient) method, passing the GitHub repository path, path the the local folder and optionally the branch to be checked out as well as the GitHub credentials. This returns the GitHubRepo that you'll use for subsequent operations.

    To manage a GitHub repository that doesn't have a local clone, call ConnectAsync(string, string, string, string, string, string, IProfileClient).

    To open an existing local repository, call OpenAsync(string, string, string, string, string, string, IProfileClient).

    To perform only GitHub account operations Call the static ConnectAsync(string, string, string, string, string, string, IProfileClient) method to construct an instance without a local repository reference.

    The Local property provides some easy-to-use methods for managing the associated local git repository.

    The Remote property provides some easy-to-use methods for managing the associated GitHub repository. These implement some common operations and are easier to use than the stock Octokit implementations.

    The lower-level GitHubApi can be used to manage GitHub assets directly and GitApi is the lower-level API that can be used to manage the local git repository.

    Properties

    Credentials

    Returns the associated GitHub credentials.

    Declaration
    public GitHubCredentials Credentials { get; set; }
    Property Value
    Type Description
    GitHubCredentials
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown when the instance is disposed.

    GitApi

    Returns the lower level LibGit2Sharp.Repository API for managing the associated local git repository.

    Declaration
    public Repository GitApi { get; set; }
    Property Value
    Type Description
    Repository
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown when the instance is disposed.

    NoLocalRepositoryException

    Thrown when the GitHubRepo is not associated with a local git repository.

    GitHubApi

    Returns the lower-level OctoKit Octokit.GitHubClient API that can be used to manage GitGub assets.

    Declaration
    public GitHubClient GitHubApi { get; set; }
    Property Value
    Type Description
    GitHubClient
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown when the instance is disposed.

    Local

    Returns the friendly API methods used to manage the local git repository.

    Declaration
    public LocalRepoApi Local { get; set; }
    Property Value
    Type Description
    LocalRepoApi
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown when the instance is disposed.

    NoLocalRepositoryException

    Thrown when the GitHubRepo is not associated with a local git repository.

    Name

    Returns the respository name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Origin

    Returns the repository's remote GitHub remote origin.

    Declaration
    public Remote Origin { get; }
    Property Value
    Type Description
    Remote
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown when the instance is disposed.

    NoLocalRepositoryException

    Thrown when the GitHubRepo is not associated with a local git repository.

    LibGit2SharpException

    Thrown if the repository doesn't have a remote origin.

    Remote

    Returns the friendly API methods used to manage the remote GitHub repository.

    Declaration
    public RemoteRepoApi Remote { get; set; }
    Property Value
    Type Description
    RemoteRepoApi
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown when the instance is disposed.

    NoLocalRepositoryException

    Thrown when the GitHubRepo is not associated with a local git repository.

    Methods

    CloneAsync(string, string, string, string, string, string, string, string, IProfileClient)

    Clones a GitHub repository to a local folder.

    Declaration
    public static Task<GitHubRepo> CloneAsync(string remoteRepoPath, string localRepoFolder, string branchName = null, string username = null, string accessToken = null, string password = null, string email = null, string userAgent = null, IProfileClient profileClient = null)
    Parameters
    Type Name Description
    string remoteRepoPath

    Specifies the GitHub remote repository path, like: [SERVER/]OWNER/REPO or [SERVER/]OWNER/REPO-git. You may also include the ".git" suffix if desired, but this is optional.

    string localRepoFolder

    Specifies the folder where the local git repository will be created or where it already exists.

    string branchName

    Optionally specifies the branch to be checked out after the clone operation completes. This defaults to the GitHub remote repository's default branch (typically main or master).

    string username

    Optionally specifies the GitHub username.

    string accessToken

    Optionally specifies the GitHub Personal Access Token (PAT).

    string password

    Optionally specifies the GitHub password.

    string email

    Optionally specifies the GitHub email address for the current user.

    string userAgent

    Optionally specifies the user-agent to be submitted with GitHub REST API calls. This defaults to "unknown".

    IProfileClient profileClient

    Optionally specifies the IProfileClient instance to be used for retrieving secrets. You may also add your IProfileClient to ServiceContainer and the instance will use that if this parameter is null. Secrets will be queried only when a profile client is available.

    Returns
    Type Description
    Task<GitHubRepo>

    The new GitHubRepo instance.

    Remarks
    note

    At least one of accesstoken or password must be passed or be available via environment variables or the profile provider.

    Exceptions
    Type Condition
    LibGit2SharpException

    Thrown when the local folder already exists.

    ConnectAsync(string, string, string, string, string, string, IProfileClient)

    Creates a GitHubRepo instance that's connected to GitHub account but is not associated with a local git repository. This is useful when you only need to perform GitHub operations.

    Declaration
    public static Task<GitHubRepo> ConnectAsync(string remoteRepoPath, string username = null, string accessToken = null, string password = null, string email = null, string userAgent = null, IProfileClient profileClient = null)
    Parameters
    Type Name Description
    string remoteRepoPath

    Specifies the GitHub remote repository path, like: [SERVER/]OWNER/REPO

    string username

    Optionally specifies the GitHub username.

    string accessToken

    Optionally specifies the GitHub Personal Access Token (PAT).

    string password

    Optionally specifies the GitHub password.

    string email

    Optionally specifies the GitHub email address for the current user.

    string userAgent

    Optionally specifies the user-agent to be submitted with GitHub REST API calls. This defaults to "unknown".

    IProfileClient profileClient

    Optionally specifies the IProfileClient instance to be used for retrieving secrets. You may also add your IProfileClient to ServiceContainer and the instance will use that if this parameter is null. Secrets will be queried only when a profile client is available.

    Returns
    Type Description
    Task<GitHubRepo>

    The new GitHubRepo instance.

    Remarks
    note

    At least one of accesstoken or password must be passed or be available via environment variables or the profile provider.

    note

    NoLocalRepositoryException will be thrown whenever operations on the non-existent repository are attempted for GitHubRepo instance returned by this method.

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Dispose(bool)

    Provides a way for subclasses to handle disposal of any additional objects or resources. Not that any overrides should be sure to call this base method.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Passed as true when disposing, false when finalizing.

    ~GitHubRepo()

    Finalizer.

    Declaration
    protected ~GitHubRepo()

    OpenAsync(string, string, string, string, string, string, IProfileClient)

    Creates a GitHubRepo that references an existing local git repository as well as the associated GitHub remote repository API.

    This requires GitHub credentials. These can be passed explicitly as parameters or can be retrieved automatically from the GITHUB_USERNAME, GITHUB_PASSWPORD, GITHUB_PAT and GITHUB_EMAIL environment variables or from the GITHUB[username], GITHUB[password], GITHUB[accesstoken] and GITHUB[email] secrets via an optional IProfileClient.

    Declaration
    public static Task<GitHubRepo> OpenAsync(string localRepoFolder, string username = null, string accessToken = null, string password = null, string email = null, string userAgent = null, IProfileClient profileClient = null)
    Parameters
    Type Name Description
    string localRepoFolder

    Specifies the folder where the local git repository will be created or where it already exists.

    string username

    Optionally specifies the GitHub username.

    string accessToken

    Optionally specifies the GitHub Personal Access Token (PAT).

    string password

    Optionally specifies the GitHub password.

    string email

    Optionally specifies the GitHub email address for the current user.

    string userAgent

    Optionally specifies the user-agent to be submitted with GitHub REST API calls. This defaults to "unknown".

    IProfileClient profileClient

    Optionally specifies the IProfileClient instance to be used for retrieving secrets. You may also add your IProfileClient to ServiceContainer and the instance will use that if this parameter is null. Secrets will be queried only when a profile client is available.

    Returns
    Type Description
    Task<GitHubRepo>
    Remarks
    note

    At least one of accesstoken or password must be passed or be available via environment variables or the profile provider.

    Exceptions
    Type Condition
    RepositoryNotFoundException

    Thrown when the local repository doesn't exist.

    In this article
    Back to top © Copyright 2005-2023 by NEONFORGE LLC