From d189137d1c7f2664c4c1973eaaccf28cfb03337b Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:25:10 +0200 Subject: [PATCH] [factory]: Adding new contributors group --- .../generators/contributors/index.ts | 38 +++++++++++++++++++ group-generators/generators/index.ts | 2 + 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/contributors/index.ts diff --git a/group-generators/generators/contributors/index.ts b/group-generators/generators/contributors/index.ts new file mode 100644 index 000000000..b50d43df9 --- /dev/null +++ b/group-generators/generators/contributors/index.ts @@ -0,0 +1,38 @@ + +import { dataProviders } from "@group-generators/helpers/data-providers"; +import { Tags, ValueType, GroupWithData } from "topics/group"; +import { + GenerationContext, + GenerationFrequency, + GroupGenerator, +} from "topics/group-generator"; + +// Generated from factory.sismo.io + +const generator: GroupGenerator = { + + generationFrequency: GenerationFrequency.Daily, + + generate: async (context: GenerationContext): Promise => { + + const githubProvider = new dataProviders.GithubProvider(); + + const githubProviderData0 = await githubProvider.getRepositoriesContributors({ + repositories: [ "ShieldFi/ShieldFi_superhack", "GoofyCoder16/React-Projects", "GoofyCoder16/CPP" ] + }); + + return [ + { + name: "contributors", + timestamp: context.timestamp, + description: "data group of goofy,shieldfi", + specs: "jjjjjjjjjjjjjjjjjj", + data: githubProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator; diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index deaf0165d..8500a873b 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -114,6 +114,7 @@ import commitdao from "./commitdao"; import community from "./community"; import communitylad from "./communitylad"; import consensysDemoLock from "./consensys-demo-lock"; +import contributors from "./contributors"; import contributorsOfDataverseCda from "./contributors-of-dataverse-cda"; import cookingRoom from "./cooking-room"; import cowHolders from "./cow-holders"; @@ -991,6 +992,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "community": community, "communitylad": communitylad, "consensys-demo-lock": consensysDemoLock, + "contributors": contributors, "contributors-of-dataverse-cda": contributorsOfDataverseCda, "cooking-room": cookingRoom, "cow-holders": cowHolders,