mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +00:00
Refactor to a RepositoryHooksClient
This commit is contained in:
28
Octokit/Models/Request/EditRepositoryHook.cs
Normal file
28
Octokit/Models/Request/EditRepositoryHook.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class EditRepositoryHook
|
||||
{
|
||||
public dynamic Config { get; set; }
|
||||
public IEnumerable<string> Events { get; set; }
|
||||
public IEnumerable<string> AddEvents { get; set; }
|
||||
public IEnumerable<string> RemoveEvents { get; set; }
|
||||
public bool Active { get; set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture,
|
||||
"Repository Hook: Replacing Events: {0}, Adding Events: {1}, Removing Events: {2}", Events == null ? "no" : string.Join(", ", Events),
|
||||
AddEvents == null ? "no" : string.Join(", ", AddEvents),
|
||||
RemoveEvents == null ? "no" : string.Join(", ", RemoveEvents));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user