Skip to content

Commit

Permalink
Update contributors-data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Nov 22, 2023
1 parent 69fd90f commit 118cd54
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Object.assign(Octokit.prototype);
const octokit = new Octokit({ auth: process.env.token });

// Set variables to avoid hard-coding
const org = 'hackforla';
const org = 't-will-gillis';
const repo = 'website';
const team = 'website-write';

Expand All @@ -23,7 +23,7 @@ const team = 'website-write';

// To delete
let oneDayAgo = new Date();
oneDayAgo.setHours(oneDayAgo.getHours() - 27);
oneDayAgo.setHours(oneDayAgo.getHours() - 1);
oneDayAgo = oneDayAgo.toISOString();

/**
Expand Down Expand Up @@ -67,7 +67,7 @@ async function fetchContributors(){


// Fetch all contributors with commit, comment, and issue contributions
const APIs = ['GET /repos/{owner}/{repo}/commits', 'GET /repos/{owner}/{repo}/issues/comments', 'GET /repos/{owner}/{repo}/issues'];
const APIs = ['GET /repos/{owner}/{repo}/commits', 'GET /repos/{owner}/{repo}/issues/comments', 'GET/repos/{owner}/{repo}/issues/evants', 'GET /repos/{owner}/{repo}/issues'];
// const dates = [oneMonthAgo, twoMonthsAgo];
const dates = [oneDayAgo];

Expand Down

0 comments on commit 118cd54

Please sign in to comment.