Skip to content

Commit cb2d037

Browse files
committed
Tweaked the handling of tags
1 parent 6aedc89 commit cb2d037

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

CycloneDX/Services/NugetV3Service.cs

+4-8
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,16 @@ private static Component SetupComponentProperties(Component component, NuspecMod
334334
{
335335
Type = releaseNoteType,
336336
Title = version.ToString(),
337-
Tags = version.ReleaseLabels.ToList(),
338-
Notes = [
337+
Tags = nuspecModel.nuspecReader.GetTags().Split(",").ToList(),
338+
Notes = new List<Note>()
339+
{
339340
new Note()
340341
{
341342
Text = new AttachedText(){
342343
Content = nuspecModel.nuspecReader.GetReleaseNotes()
343344
}
344345
}
345-
]
346+
}
346347
};
347348

348349
var properties = nuspecModel.nuspecReader.GetMetadata()
@@ -353,11 +354,6 @@ private static Component SetupComponentProperties(Component component, NuspecMod
353354
})
354355
.ToList();
355356
properties.Add(new Property()
356-
{
357-
Name = "tags",
358-
Value = nuspecModel.nuspecReader.GetTags(),
359-
});
360-
properties.Add(new Property()
361357
{
362358
Name = "language",
363359
Value = nuspecModel.nuspecReader.GetLanguage()

0 commit comments

Comments
 (0)