Skip to content

Commit 50f2c78

Browse files
feat: add custom roast line for commitmentissues repo
Return a fixed cause of death and last words for dotsystemsdevs/commitmentissues so demo runs consistently show the self-ironic project narrative. Made-with: Cursor
1 parent a612d0a commit 50f2c78

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/lib/scoring.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { RepoData } from './types'
22

3+
const COMMITMENTISSUES_REPO = 'dotsystemsdevs/commitmentissues'
4+
const COMMITMENTISSUES_CAUSE = 'Monetized before loved.'
5+
const COMMITMENTISSUES_LAST_WORDS = "should've farmed laughs before revenue."
6+
37
const KNOWN_REPO_CAUSES: Record<string, string> = {
48
'bower/bower': 'npm install happened and nobody looked back',
59
'atom/atom': 'GitHub shipped VS Code, then sunset Atom in public',
@@ -35,6 +39,10 @@ export function getDeathLabel(index: number): string {
3539
}
3640

3741
export function determineCauseOfDeath(repo: RepoData): string {
42+
if (repo.fullName.toLowerCase() === COMMITMENTISSUES_REPO) {
43+
return COMMITMENTISSUES_CAUSE
44+
}
45+
3846
const knownRepoCause = KNOWN_REPO_CAUSES[repo.fullName.toLowerCase()]
3947
if (knownRepoCause) return knownRepoCause
4048

@@ -117,6 +125,10 @@ export function determineCauseOfDeath(repo: RepoData): string {
117125
}
118126

119127
export function generateLastWords(repo: RepoData): string {
128+
if (repo.fullName.toLowerCase() === COMMITMENTISSUES_REPO) {
129+
return COMMITMENTISSUES_LAST_WORDS
130+
}
131+
120132
const now = new Date()
121133
const lastCommit = new Date(repo.lastCommitDate)
122134
const daysSince = (now.getTime() - lastCommit.getTime()) / (1000 * 60 * 60 * 24)

0 commit comments

Comments
 (0)