File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { 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+
37const 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
3741export 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
119127export 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 )
You can’t perform that action at this time.
0 commit comments