-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ImplementDeploymentEnums
- Loading branch information
Showing
273 changed files
with
6,153 additions
and
982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"sourcelink": { | ||
"version": "3.1.1", | ||
"commands": [ | ||
"sourcelink" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CI Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "master" | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 3.1.101 | ||
- name: Build with dotnet | ||
run: ./build.sh --linksources=true --verbosity=verbose | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
mode: ContinuousDeployment | ||
branches: | ||
master: | ||
mode: ContinuousDeployment | ||
increment: Minor | ||
tag: beta | ||
dotnetcore: | ||
develop: | ||
mode: ContinuousDeployment | ||
increment: Minor | ||
tag: alpha | ||
source-branches: ['dotnetcore'] | ||
ignore: | ||
sha: [] | ||
sha: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseManagementConsoleClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Octokit.Reactive | ||
{ | ||
/// <summary> | ||
/// A client for GitHub's Enterprise Management Console API | ||
/// </summary> | ||
/// <remarks> | ||
/// See the <a href="https://developer.github.com/v3/enterprise/management_console/">Enterprise Management Console API documentation</a> for more information. | ||
/// </remarks> | ||
public interface IObservableEnterpriseManagementConsoleClient | ||
{ | ||
/// <summary> | ||
/// Gets GitHub Enterprise Maintenance Mode Status | ||
/// </summary> | ||
/// <remarks> | ||
/// https://developer.github.com/v3/enterprise/management_console/#check-maintenance-status | ||
/// </remarks> | ||
/// <returns>The <see cref="MaintenanceModeResponse"/>.</returns> | ||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] | ||
IObservable<MaintenanceModeResponse> GetMaintenanceMode(string managementConsolePassword); | ||
|
||
/// <summary> | ||
/// Sets GitHub Enterprise Maintenance Mode | ||
/// </summary> | ||
/// <remarks> | ||
/// https://developer.github.com/v3/enterprise/management_console/#check-maintenance-status | ||
/// </remarks> | ||
/// <returns>The <see cref="MaintenanceModeResponse"/>.</returns> | ||
IObservable<MaintenanceModeResponse> EditMaintenanceMode(UpdateMaintenanceRequest maintenance, string managementConsolePassword); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseManagementConsoleClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using System; | ||
using System.Reactive.Threading.Tasks; | ||
|
||
namespace Octokit.Reactive | ||
{ | ||
/// <summary> | ||
/// A client for GitHub's Enterprise Management Console API | ||
/// </summary> | ||
/// <remarks> | ||
/// See the <a href="https://developer.github.com/v3/enterprise/management_console/">Enterprise Management Console API documentation</a> for more information. | ||
/// </remarks> | ||
public class ObservableEnterpriseManagementConsoleClient : IObservableEnterpriseManagementConsoleClient | ||
{ | ||
readonly IEnterpriseManagementConsoleClient _client; | ||
|
||
public ObservableEnterpriseManagementConsoleClient(IGitHubClient client) | ||
{ | ||
Ensure.ArgumentNotNull(client, "client"); | ||
|
||
_client = client.Enterprise.ManagementConsole; | ||
} | ||
|
||
/// <summary> | ||
/// Gets GitHub Enterprise Maintenance Mode Status | ||
/// </summary> | ||
/// <remarks> | ||
/// https://developer.github.com/v3/enterprise/management_console/#check-maintenance-status | ||
/// </remarks> | ||
/// <returns>The <see cref="MaintenanceModeResponse"/>.</returns> | ||
public IObservable<MaintenanceModeResponse> GetMaintenanceMode(string managementConsolePassword) | ||
{ | ||
Ensure.ArgumentNotNullOrEmptyString(managementConsolePassword, "managementConsolePassword"); | ||
|
||
return _client.GetMaintenanceMode(managementConsolePassword).ToObservable(); | ||
} | ||
|
||
/// <summary> | ||
/// Sets GitHub Enterprise Maintenance Mode | ||
/// </summary> | ||
/// <remarks> | ||
/// https://developer.github.com/v3/enterprise/management_console/#check-maintenance-status | ||
/// </remarks> | ||
/// <returns>The <see cref="MaintenanceModeResponse"/>.</returns> | ||
public IObservable<MaintenanceModeResponse> EditMaintenanceMode(UpdateMaintenanceRequest maintenance, string managementConsolePassword) | ||
{ | ||
Ensure.ArgumentNotNull(maintenance, "maintenance"); | ||
Ensure.ArgumentNotNullOrEmptyString(managementConsolePassword, "managementConsolePassword"); | ||
|
||
return _client.EditMaintenanceMode(maintenance, managementConsolePassword).ToObservable(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.