Add notable contributions plugin (#222)

This commit is contained in:
Simon Lecoq
2021-04-09 20:51:45 +02:00
committed by GitHub
parent e63dee0c6e
commit 19bb1b3766
15 changed files with 218 additions and 4 deletions

View File

@@ -165,6 +165,12 @@
pr:{get count() { return this.open + this.merged }, open:faker.datatype.number(1000), merged:faker.datatype.number(1000)},
}
}) : null),
//Notable
...(set.plugins.enabled.notable ? ({
notable:{
contributions:new Array(2+faker.datatype.number(2)).fill(null).map(_ => ({name:faker.lorem.slug(), avatar:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mOcOnfpfwAGfgLYttYINwAAAABJRU5ErkJggg=="})),
}
}) : null),
//Gists
...(set.plugins.enabled.gists ? ({
gists:{