Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add issue references to Issue model #806

Merged
merged 5 commits into from
Dec 5, 2024
Merged
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
3 changes: 3 additions & 0 deletions NGitLab/Models/Issue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,7 @@ public class Issue

[JsonPropertyName("moved_to_id")]
public int? MovedToId;

[JsonPropertyName("references")]
public References References;
}
15 changes: 15 additions & 0 deletions NGitLab/Models/References.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;

namespace NGitLab.Models;

public class References
{
[JsonPropertyName("short")]
public string Short { get; set; }

[JsonPropertyName("relative")]
public string Relative { get; set; }

[JsonPropertyName("full")]
public string Full { get; set; }
}
9 changes: 9 additions & 0 deletions NGitLab/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2118,6 +2118,7 @@ NGitLab.Models.Issue.MergeRequestsCount.set -> void
NGitLab.Models.Issue.Milestone -> NGitLab.Models.Milestone
NGitLab.Models.Issue.MovedToId -> int?
NGitLab.Models.Issue.ProjectId -> int
NGitLab.Models.Issue.References -> NGitLab.Models.References
NGitLab.Models.Issue.State -> string
NGitLab.Models.Issue.Title -> string
NGitLab.Models.Issue.UpdatedAt -> System.DateTime
Expand Down Expand Up @@ -3339,6 +3340,14 @@ NGitLab.Models.Ref
NGitLab.Models.Ref.Name -> string
NGitLab.Models.Ref.Ref() -> void
NGitLab.Models.Ref.Type -> string
NGitLab.Models.References
NGitLab.Models.References.Full.get -> string
NGitLab.Models.References.Full.set -> void
NGitLab.Models.References.References() -> void
NGitLab.Models.References.Relative.get -> string
NGitLab.Models.References.Relative.set -> void
NGitLab.Models.References.Short.get -> string
NGitLab.Models.References.Short.set -> void
NGitLab.Models.RelatedMergeRequestsQuery
NGitLab.Models.RelatedMergeRequestsQuery.RelatedMergeRequestsQuery() -> void
NGitLab.Models.RelatedMergeRequestsQuery.Sha.get -> NGitLab.Sha1
Expand Down