This commit is contained in:
@@ -8,7 +8,7 @@ namespace Approve.Checker.Gitlab;
|
|||||||
|
|
||||||
public class ApproversDto
|
public class ApproversDto
|
||||||
{
|
{
|
||||||
public bool? ForCodeFreeze { get; set; }
|
public bool ForCodeFreeze { get; set; }
|
||||||
public int CountApprovers { get; set; } = 1;
|
public int CountApprovers { get; set; } = 1;
|
||||||
public List<string> Users { get; set; } = new();
|
public List<string> Users { get; set; } = new();
|
||||||
}
|
}
|
||||||
@@ -7,8 +7,8 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
#pragma warning disable CS8618
|
#pragma warning disable CS8618
|
||||||
|
|
||||||
namespace Approve.Checker.Gitlab.Dto
|
namespace Approve.Checker.Gitlab.Dto;
|
||||||
{
|
|
||||||
public sealed class CustomMergeRequest
|
public sealed class CustomMergeRequest
|
||||||
{
|
{
|
||||||
[JsonProperty("iid")]
|
[JsonProperty("iid")]
|
||||||
@@ -107,4 +107,3 @@ namespace Approve.Checker.Gitlab.Dto
|
|||||||
[JsonProperty("merged_by")]
|
[JsonProperty("merged_by")]
|
||||||
public Assignee MergedBy { get; set; }
|
public Assignee MergedBy { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Approve.Checker.Gitlab
|
namespace Approve.Checker.Gitlab;
|
||||||
{
|
|
||||||
public class Settings
|
public class Settings
|
||||||
{
|
{
|
||||||
public string GitlabUrl = Environment.GetEnvironmentVariable("CI_SERVER_URL") ?? CheckAndThrow("CI_SERVER_URL");
|
public string GitlabUrl = Environment.GetEnvironmentVariable("CI_SERVER_URL") ?? CheckAndThrow("CI_SERVER_URL");
|
||||||
@@ -15,4 +15,3 @@
|
|||||||
throw new ArgumentException($"Please define {name}");
|
throw new ArgumentException($"Please define {name}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user