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
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Reinstall BetterDiscord | |
# @raycast.mode compact | |
# Optional parameters: | |
# @raycast.icon 🤖 |
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
export async function getRecentCommitCount(username: string, email: string, days: number = 30) { | |
let totalCommits = 0 | |
let page = 1 | |
const perPage = 100 | |
const timeFrame = new Date() | |
timeFrame.setDate(timeFrame.getDate() - days) | |
let stop = false | |
// Loop through pages until we find a commit outside of our timeframe | |
while (!stop) { |