diff --git a/NGitLab/Impl/MergeRequestClient.cs b/NGitLab/Impl/MergeRequestClient.cs index 2a2b09d9..04ea5941 100644 --- a/NGitLab/Impl/MergeRequestClient.cs +++ b/NGitLab/Impl/MergeRequestClient.cs @@ -62,6 +62,7 @@ public IEnumerable Get(MergeRequestQuery query) url = Utils.AddParameter(url, "target_branch", query.TargetBranch); url = Utils.AddParameter(url, "search", query.Search); url = Utils.AddParameter(url, "wip", query.Wip.HasValue ? (query.Wip.Value ? "yes" : "no") : null); + url = Utils.AddParameter(url, "with_merge_status_recheck", query.WithMergeStatusRecheck?.ToString().ToLowerInvariant()); return _api.Get().GetAll(url); } diff --git a/NGitLab/Models/MergeRequestQuery.cs b/NGitLab/Models/MergeRequestQuery.cs index 00eca081..42f552ae 100644 --- a/NGitLab/Models/MergeRequestQuery.cs +++ b/NGitLab/Models/MergeRequestQuery.cs @@ -107,4 +107,9 @@ public class MergeRequestQuery /// Filter merge requests against their wip status. yes to return only WIP merge requests, no to return non WIP merge requests /// public bool? Wip { get; set; } + + /// + /// Listing merge requests might not proactively update (which also affects ), as this can be an expensive operation. If you need the value of these fields from this endpoint, set this parameter to true. + /// + public bool? WithMergeStatusRecheck { get; set; } }