mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +00:00
28 lines
973 B
C#
28 lines
973 B
C#
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));
|
|
}
|
|
}
|
|
}
|
|
} |