Skip to content

Commit

Permalink
Add issue references to Issue model (#806)
Browse files Browse the repository at this point in the history
* Add issue references to Issue model

* Defined as properties

* Nuget checks

* Missed the implicit constructor

* fix order of declarations in publicapi
  • Loading branch information
avkranenburg authored Dec 5, 2024
1 parent 4283ef2 commit dd51622
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
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

0 comments on commit dd51622

Please sign in to comment.