mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 02:05:39 +00:00
#1107 Do no set visibility and affiliation value to avoid mixing with type
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user