From c93250333e764f5b523dde8d305f677ea952da01 Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Sat, 21 Oct 2023 22:57:00 +0200 Subject: [PATCH] [factory]: Adding new binder-builders group (#2250) --- .../generators/binder-builders/index.ts | 38 +++++++++++++++++++ group-generators/generators/index.ts | 2 + 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/binder-builders/index.ts diff --git a/group-generators/generators/binder-builders/index.ts b/group-generators/generators/binder-builders/index.ts new file mode 100644 index 000000000..054af959b --- /dev/null +++ b/group-generators/generators/binder-builders/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.Once, + + generate: async (context: GenerationContext): Promise => { + + const githubProvider = new dataProviders.GithubProvider(); + + const githubProviderData0 = await githubProvider.getRepositoriesContributors({ + repositories: [ "fabianferno/binder-app" ] + }); + + return [ + { + name: "binder-builders", + timestamp: context.timestamp, + description: "Create Binder. ", + specs: "$1018 dollars woo hoo", + 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 64873c81d..5743747b8 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -72,6 +72,7 @@ import bgans from "./bgans"; import bigqFrens from "./bigq-frens"; import bigqFriends from "./bigq-friends"; import bigqGroupCentric from "./bigq-group-centric"; +import binderBuilders from "./binder-builders"; import birdmore3LensFollows from "./birdmore3-lens-follows"; import bitcoinCommemorativeGroup from "./bitcoin-commemorative-group"; import bithinker from "./bithinker"; @@ -988,6 +989,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "bigq-frens": bigqFrens, "bigq-friends": bigqFriends, "bigq-group-centric": bigqGroupCentric, + "binder-builders": binderBuilders, "birdmore3-lens-follows": birdmore3LensFollows, "bitcoin-commemorative-group": bitcoinCommemorativeGroup, "bithinker": bithinker,