Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NGitLab/Impl/MergeRequestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public IEnumerable<MergeRequest> 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<MergeRequest>(url);
}
Expand Down
5 changes: 5 additions & 0 deletions NGitLab/Models/MergeRequestQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,9 @@
/// Filter merge requests against their wip status. yes to return only WIP merge requests, no to return non WIP merge requests
/// </summary>
public bool? Wip { get; set; }

/// <summary>
/// Listing merge requests might not proactively update <see cref="MergeRequest.MergeStatus"/> (which also affects <see cref="MergeRequest.HasConflicts"/>), as this can be an expensive operation. If you need the value of these fields from this endpoint, set this parameter to true.
/// </summary>
public bool? WithMergeStatusRecheck { get; set; }

Check failure on line 114 in NGitLab/Models/MergeRequestQuery.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Symbol 'WithMergeStatusRecheck.set' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Check failure on line 114 in NGitLab/Models/MergeRequestQuery.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Symbol 'WithMergeStatusRecheck.get' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Check failure on line 114 in NGitLab/Models/MergeRequestQuery.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Symbol 'WithMergeStatusRecheck.get' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Check failure on line 114 in NGitLab/Models/MergeRequestQuery.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Symbol 'WithMergeStatusRecheck.set' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Check failure on line 114 in NGitLab/Models/MergeRequestQuery.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Symbol 'WithMergeStatusRecheck.get' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Check failure on line 114 in NGitLab/Models/MergeRequestQuery.cs

View workflow job for this annotation

GitHub Actions / create_nuget

Symbol 'WithMergeStatusRecheck.set' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)
}
Loading