mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
remove PemissionType enum;
This commit is contained in:
@@ -305,7 +305,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new TeamsClient(connection);
|
||||
var newPermission = new TeamRepositoryUpdate(PermissionType.Admin);
|
||||
var newPermission = new TeamRepositoryUpdate(Permission.Admin);
|
||||
|
||||
client.AddRepository(1, "org", "repo", newPermission);
|
||||
|
||||
|
||||
@@ -4,32 +4,21 @@ using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public enum PermissionType
|
||||
{
|
||||
[Parameter(Value = "pull")]
|
||||
Pull,
|
||||
[Parameter(Value = "push")]
|
||||
Push,
|
||||
[Parameter(Value = "admin")]
|
||||
Admin
|
||||
}
|
||||
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class TeamRepositoryUpdate
|
||||
{
|
||||
/// <summary>
|
||||
/// Used to add or update a team repository.
|
||||
/// </summary>
|
||||
public TeamRepositoryUpdate(PermissionType permission)
|
||||
public TeamRepositoryUpdate(Permission permission)
|
||||
{
|
||||
Permission = permission;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The permission to grant the team on this repository.
|
||||
/// </summary>
|
||||
[Parameter(Key = "permission")]
|
||||
public PermissionType Permission { get; private set; }
|
||||
/// </summary>
|
||||
public Permission Permission { get; private set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user