Skip to content

Commit

Permalink
Documentation for OSS Lifecycle (badges#3689)
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB authored Jul 11, 2019
1 parent 38cdc00 commit 7bdda90
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions services/osslifecycle/osslifecycle.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

const { BaseService, InvalidResponse } = require('..')

const documentation = `
<p>
OSS Lifecycle is an initiative started by Netflix to classify open-source projects into lifecycles
and clearly identify which projects are active and which ones are retired. To enable this badge,
simply create an OSSMETADATA tagging file at the root of your GitHub repository containing a
single line similar to the following: <code>osslifecycle=active</code>. Other suggested values are
<code>osslifecycle=maintenance</code> and <code>osslifecycle=archived</code>. A working example
can be viewed on the <a href="https://github.com/Netflix/osstracker">OSS Tracker repository</a>.
</p>
`

module.exports = class OssTracker extends BaseService {
static get category() {
return 'other'
Expand All @@ -22,13 +33,15 @@ module.exports = class OssTracker extends BaseService {
namedParams: { user: 'Netflix', repo: 'osstracker' },
staticPreview: this.render({ status: 'active' }),
keywords: ['Netflix'],
documentation,
},
{
title: 'OSS Lifecycle (branch)',
pattern: ':user/:repo/:branch',
namedParams: { user: 'Netflix', repo: 'osstracker', branch: 'master' },
staticPreview: this.render({ status: 'active' }),
keywords: ['Netflix'],
documentation,
},
]
}
Expand Down

0 comments on commit 7bdda90

Please sign in to comment.