Skip to content

Commit

Permalink
Merge pull request #41 from greenkeeperio/add_yearly_plans
Browse files Browse the repository at this point in the history
feat(badges): add yearly plans
  • Loading branch information
janl committed Jul 31, 2018
2 parents 8b1d8e5 + e8dac0a commit b58761c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = async function badges (server, options, next) {
if (!repoDoc.enabled) return [disabled[style], etags['disabled'][style]]
if (!repoDoc.private) return [enabled[style], etags['enabled'][style]]
if (!payDoc) return [paymentRequired[style], etags['paymentRequired'][style]]
if (['org', 'personal', 'team', 'business'].includes(payDoc.plan)) return [enabled[style], etags['enabled'][style]]
if (['org', 'personal', 'org_year', 'personal_year', 'team', 'business'].includes(payDoc.plan)) return [enabled[style], etags['enabled'][style]]
return [paymentRequired[style], etags['paymentRequired'][style]]
}

Expand Down

0 comments on commit b58761c

Please sign in to comment.