[FEAT] add Triage/Maintain permission (#2467)

This commit is contained in:
Jan Verhaeghe
2022-07-11 16:12:20 +02:00
committed by GitHub
parent 73b7a7a18c
commit f92f0b8194
3 changed files with 71 additions and 7 deletions
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Octokit.Tests.Conventions
{
public class ResponseModelSetterlessAutoPropertyException : Exception
{
public ResponseModelSetterlessAutoPropertyException(Type modelType, IEnumerable<PropertyInfo> setterlessProperties)
: base(CreateMessage(modelType, setterlessProperties))
{ }
static string CreateMessage(Type modelType, IEnumerable<PropertyInfo> setterlessProperties)
{
return string.Format("Model type '{0}' contains the following setterless properties: {1}{2}",
modelType.FullName,
Environment.NewLine,
string.Join(Environment.NewLine, setterlessProperties.Select(x => x.Name)));
}
}
}