1.0.0 • Published 3 years ago

cdk-github-stats-construct v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

cdk-github-stats-construct

A CDK Construct for setting up a workflow for saving statistics on GitHub repos

const githubStats = new GitHubStatsWorkflow(this, "nextjs-github-stats", {
  owner: "vercel",
  repo: "next.js",
  externalUser: true, // generates an IAM user with read permissions to grab the data from the database
  schedule: "cron(0 * * * ? *)", // Once an hour
  githubToken: process.env.GITHUB_TOKEN,
});