Mark existing BranchProtection classes/properties and RepositoriesClient.EditBranch() method obsolete, due to breaking changes in the API preview period

This commit is contained in:
Ryan Gribble
2016-07-22 07:22:29 +10:00
parent bc1967b98f
commit ba127b21a8
7 changed files with 17 additions and 1 deletions
@@ -12,6 +12,7 @@ namespace Octokit
/// Note: this is a PREVIEW api: https://developer.github.com/changes/2015-11-11-protected-branches-api/
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
[Obsolete("BranchProtection preview functionality in the GitHub API has had breaking changes. This existing implementation will cease to work when the preview period ends.")]
public class BranchProtection
{
public BranchProtection() { }
@@ -42,6 +43,7 @@ namespace Octokit
}
[DebuggerDisplay("{DebuggerDisplay,nq}")]
[Obsolete("BranchProtection preview functionality in the GitHub API has had breaking changes. This existing implementation will cease to work when the preview period ends.")]
public class RequiredStatusChecks
{
public RequiredStatusChecks() { }
@@ -74,6 +76,7 @@ namespace Octokit
/// <summary>
/// The enforcement levels that are available
/// </summary>
[Obsolete("BranchProtection preview functionality in the GitHub API has had breaking changes. This existing implementation will cease to work when the preview period ends.")]
public enum EnforcementLevel
{
/// <summary>