Skip to content

Commit

Permalink
[factory]: Adding new contributors group (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 9, 2023
1 parent f00a0ad commit 2c466cb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions group-generators/generators/contributors/index.ts
Original file line number Diff line number Diff line change
@@ -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<GroupWithData[]> => {

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;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2c466cb

Please sign in to comment.