Skip to content

Commit

Permalink
Adding functionality to update IsVotedInLast3Months in TSC_VOTING_OVE…
Browse files Browse the repository at this point in the history
…RVIEW.md
  • Loading branch information
Shivrajsoni committed Jan 1, 2025
1 parent 5c0a735 commit 007b543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/vote_tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ module.exports = async ({ github, context, botCommentURL}) => {
voteInfo.lastVoteClosedTime = new Date().toISOString().split('T')[0];

if (userInfo) {
voteInfo.isVotedInLast3Months = true;
voteInfo.lastParticipatedVoteTime = currentTime;
voteInfo.isVotedInLast3Months = isVotingWithinLastThreeMonths(voteInfo.lastParticipatedVoteTime)? 'true' : 'false';
voteInfo[voteChoice === "In favor" ? 'agreeCount' : voteChoice === "Against" ? 'disagreeCount' : 'abstainCount']++;
} else {
voteInfo.notParticipatingCount++;
Expand Down

0 comments on commit 007b543

Please sign in to comment.