-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[factory]: Adding new stargazers-of-keyapp-s-apps group (#2179)
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
group-generators/generators/stargazers-of-keyapp-s-apps/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.getRepositoriesStargazers({ | ||
repositories: [ "p2p-org/p2p-wallet-web", "p2p-org/key-app-android", "p2p-org/p2p-wallet-ios" ] | ||
}); | ||
|
||
return [ | ||
{ | ||
name: "stargazers-of-keyapp-s-apps", | ||
timestamp: context.timestamp, | ||
description: "Data group of stargazers of Keyapp's apps", | ||
specs: "Data group of stargazers of Keyapp's apps", | ||
data: githubProviderData0, | ||
valueType: ValueType.Score, | ||
tags: [Tags.Factory], | ||
}, | ||
]; | ||
}, | ||
}; | ||
|
||
export default generator; |