#1107 Do no set visibility and affiliation value to avoid mixing with type

This commit is contained in:
Alex P
2016-03-07 11:55:16 +02:00
parent d5a028c7d1
commit 0188238cb5
2 changed files with 13 additions and 1 deletions
@@ -125,6 +125,12 @@ namespace Octokit
/// </summary>
public enum RepositoryVisibility
{
/// <summary>
/// Default value (all)
/// </summary>
[Parameter(Value = "")]
Default,
/// <summary>
/// Returns only public repositories
/// </summary>
@@ -146,6 +152,12 @@ namespace Octokit
/// </summary>
public enum RepositoryAffiliation
{
/// <summary>
/// Default value (all)
/// </summary>
[Parameter(Value = "")]
Default,
/// <summary>
/// Repositories that are owned by the authenticated user
/// </summary>
+1 -1
View File
@@ -33,7 +33,7 @@ namespace Octokit
return (from property in map
let value = property.GetValue(this)
let key = property.Key
where value != null
where !String.IsNullOrEmpty(value)
select new { key, value }).ToDictionary(kvp => kvp.key, kvp => kvp.value);
}