Skip to content

Commit

Permalink
Tweaked the handling of tags
Browse files Browse the repository at this point in the history
Signed-off-by: James Thompson <[email protected]>
  • Loading branch information
thompson-tomo committed Jan 30, 2024
1 parent 6aedc89 commit 58974c0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CycloneDX/Services/NugetV3Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,16 @@ private static Component SetupComponentProperties(Component component, NuspecMod
{
Type = releaseNoteType,
Title = version.ToString(),
Tags = version.ReleaseLabels.ToList(),
Notes = [
Tags = nuspecModel.nuspecReader.GetTags().Split(",").ToList(),
Notes = new List<Note>()
{
new Note()
{
Text = new AttachedText(){
Content = nuspecModel.nuspecReader.GetReleaseNotes()
}
}
]
}
};

var properties = nuspecModel.nuspecReader.GetMetadata()
Expand All @@ -353,11 +354,6 @@ private static Component SetupComponentProperties(Component component, NuspecMod
})
.ToList();
properties.Add(new Property()
{
Name = "tags",
Value = nuspecModel.nuspecReader.GetTags(),
});
properties.Add(new Property()
{
Name = "language",
Value = nuspecModel.nuspecReader.GetLanguage()
Expand Down

0 comments on commit 58974c0

Please sign in to comment.