Skip to content

Commit

Permalink
added properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Amitla Vannikumar committed Oct 13, 2023
1 parent 25e572f commit 7448596
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.ComponentDetection.Contracts.TypedComponent;
namespace Microsoft.ComponentDetection.Contracts.TypedComponent;

using PackageUrl;

Expand All @@ -20,6 +20,9 @@ public VcpkgComponent(string spdxid, string name, string version, string triplet
this.Triplet = triplet;
this.Description = description;
this.DownloadLocation = downloadLocation;
var locationArr = downloadLocation.Split('/');
this.GitRepositoryOwner = locationArr[3];
this.GitRepositoryName = locationArr[4].Split('@')[0];
}

public string SPDXID { get; set; }
Expand All @@ -28,6 +31,10 @@ public VcpkgComponent(string spdxid, string name, string version, string triplet

public string DownloadLocation { get; set; }

public string GitRepositoryOwner { get; set; }

public string GitRepositoryName { get; set; }

public string Triplet { get; set; }

public string Version { get; set; }
Expand Down

0 comments on commit 7448596

Please sign in to comment.