project-kb icon indicating copy to clipboard operation
project-kb copied to clipboard

Automatically determine repository url from advisory text

Open copernico opened this issue 4 years ago • 0 comments

If we could extract the name of the affected project from the advisory, we could then try to propose the user a repository url, without them specifying one.

This can be based on a mapping table between "project names" and repositories, of which an initial example is given in https://github.com/SAP/project-kb/blob/prospector-assuremoss/prospector/data/project_metadata.json

For this to work we need two things:

  • function to extract (guess) project names from advisory text (simple implementation could extract all words from the advisory that begin with a capital letter)
  • function to pick the most likely entry in the project_metadata.json table

copernico avatar Jul 23 '21 07:07 copernico