Class GitHubRepoPath
Abstracts GitHub repo paths like: github.com/owner/repo or github.com/owner/repo, where github.com is the implied server.
Namespace: Neon.Deployment
Assembly: Neon.Deployment.dll
Syntax
public class GitHubRepoPath
Properties
Owner
Returns the owner part of the path.
Declaration
public string Owner { get; }
Property Value
| Type | Description |
|---|---|
| string |
Repo
Returns the repo part of the path.
Declaration
public string Repo { get; }
Property Value
| Type | Description |
|---|---|
| string |
Server
Returns the server part of the path.
Declaration
public string Server { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Parse(string)
Parses a GitHub repository path.
Declaration
public static GitHubRepoPath Parse(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path, like: [SERVER/]OWNER/REPO |
Returns
| Type | Description |
|---|---|
| GitHubRepoPath | The parsed GitHubRepoPath. |
Remarks
note
github.com will be assumed when no server is specified.
Exceptions
| Type | Condition |
|---|---|
| FormatException | Thrown when the input is invalid. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |