Fix "new" ribbon showing on all plugins in marketplace

The original commit 913145399e added a ribbon to show which plugins
were recently added to the marketplace but on the live site all plugins
were showing as 'new'. The problem is due to relying on the git author
date which is incorrect when using shallow depth clones in the build
process.

Fixed by adding new key to plugin marketplace metadata to be parsed.

Fixes: https://github.com/backstage/backstage/issues/13015
Signed-off-by: Calum Lind <calumlind@gmail.com>
This commit is contained in:
Calum Lind
2022-10-20 12:50:22 +01:00
parent 72e1f6b598
commit 8959267df0
91 changed files with 95 additions and 21 deletions
+1
View File
@@ -23,4 +23,5 @@ iconUrl: # Used as the src attribute for your logo.
# You can provide an external url or add your logo under static/img and provide a path
# relative to static/ e.g. img/my-logo.png
npmPackageName: # Your npm package name E.g. '@backstage/plugin-<etc>' quotes are required
addedDate: # The date plugin added to marketplace E.g. '2022-10-01' quotes are required
```