Class GitHubSettingsExtensions
Used within GitHubTasks.
Inheritance
System.Object
GitHubSettingsExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Nuke.GitHub
Assembly: Nuke.GitHub.dll
Syntax
[PublicAPI]
public static class GitHubSettingsExtensions
Methods
| Improve this Doc View SourceResetRepositoryName(GitHubSettings)
Resets RepositoryName.
The name of the repository
Declaration
[Pure]
public static GitHubSettings ResetRepositoryName(this GitHubSettings toolSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| GitHubSettings | toolSettings |
Returns
| Type | Description |
|---|---|
| GitHubSettings |
ResetRepositoryName<T>(T)
Resets RepositoryName.
The name of the repository
Declaration
[Pure]
public static T ResetRepositoryName<T>(this T toolSettings)
where T : GitHubSettings
Parameters
| Type | Name | Description |
|---|---|---|
| T | toolSettings |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
ResetRepositoryOwner(GitHubSettings)
Resets RepositoryOwner.
The account under which the repository is hosted
Declaration
[Pure]
public static GitHubSettings ResetRepositoryOwner(this GitHubSettings toolSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| GitHubSettings | toolSettings |
Returns
| Type | Description |
|---|---|
| GitHubSettings |
ResetRepositoryOwner<T>(T)
Resets RepositoryOwner.
The account under which the repository is hosted
Declaration
[Pure]
public static T ResetRepositoryOwner<T>(this T toolSettings)
where T : GitHubSettings
Parameters
| Type | Name | Description |
|---|---|---|
| T | toolSettings |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
ResetToken(GitHubSettings)
Resets Token.
The Token for the GitHub API
Declaration
[Pure]
public static GitHubSettings ResetToken(this GitHubSettings toolSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| GitHubSettings | toolSettings |
Returns
| Type | Description |
|---|---|
| GitHubSettings |
ResetToken<T>(T)
Resets Token.
The Token for the GitHub API
Declaration
[Pure]
public static T ResetToken<T>(this T toolSettings)
where T : GitHubSettings
Parameters
| Type | Name | Description |
|---|---|---|
| T | toolSettings |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
SetRepositoryName(GitHubSettings, String)
Sets RepositoryName.
The name of the repository
Declaration
[Pure]
public static GitHubSettings SetRepositoryName(this GitHubSettings toolSettings, string repositoryName)
Parameters
| Type | Name | Description |
|---|---|---|
| GitHubSettings | toolSettings | |
| System.String | repositoryName |
Returns
| Type | Description |
|---|---|
| GitHubSettings |
SetRepositoryName<T>(T, String)
Sets RepositoryName.
The name of the repository
Declaration
[Pure]
public static T SetRepositoryName<T>(this T toolSettings, string repositoryName)
where T : GitHubSettings
Parameters
| Type | Name | Description |
|---|---|---|
| T | toolSettings | |
| System.String | repositoryName |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
SetRepositoryOwner(GitHubSettings, String)
Sets RepositoryOwner.
The account under which the repository is hosted
Declaration
[Pure]
public static GitHubSettings SetRepositoryOwner(this GitHubSettings toolSettings, string repositoryOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| GitHubSettings | toolSettings | |
| System.String | repositoryOwner |
Returns
| Type | Description |
|---|---|
| GitHubSettings |
SetRepositoryOwner<T>(T, String)
Sets RepositoryOwner.
The account under which the repository is hosted
Declaration
[Pure]
public static T SetRepositoryOwner<T>(this T toolSettings, string repositoryOwner)
where T : GitHubSettings
Parameters
| Type | Name | Description |
|---|---|---|
| T | toolSettings | |
| System.String | repositoryOwner |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
SetToken(GitHubSettings, String)
Sets Token.
The Token for the GitHub API
Declaration
[Pure]
public static GitHubSettings SetToken(this GitHubSettings toolSettings, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| GitHubSettings | toolSettings | |
| System.String | token |
Returns
| Type | Description |
|---|---|
| GitHubSettings |
SetToken<T>(T, String)
Sets Token.
The Token for the GitHub API
Declaration
[Pure]
public static T SetToken<T>(this T toolSettings, string token)
where T : GitHubSettings
Parameters
| Type | Name | Description |
|---|---|---|
| T | toolSettings | |
| System.String | token |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |