convert some service classes to static props, run [bitbucket bitrise bountysource] (#5502)
* refactor(bitbucket): convert to static props * refactor(bitrise): convert to static props * refactor(bountysource): convert to static props Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
@@ -8,30 +8,18 @@ const { BaseJsonService } = require('..')
|
||||
const schema = Joi.object({ activity_total: nonNegativeInteger })
|
||||
|
||||
module.exports = class Bountysource extends BaseJsonService {
|
||||
static get category() {
|
||||
return 'funding'
|
||||
}
|
||||
static category = 'funding'
|
||||
static route = { base: 'bountysource/team', pattern: ':team/activity' }
|
||||
|
||||
static get route() {
|
||||
return {
|
||||
base: 'bountysource/team',
|
||||
pattern: ':team/activity',
|
||||
}
|
||||
}
|
||||
static examples = [
|
||||
{
|
||||
title: 'Bountysource',
|
||||
namedParams: { team: 'mozilla-core' },
|
||||
staticPreview: this.render({ total: 53000 }),
|
||||
},
|
||||
]
|
||||
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
title: 'Bountysource',
|
||||
namedParams: { team: 'mozilla-core' },
|
||||
staticPreview: this.render({ total: 53000 }),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
static get defaultBadgeData() {
|
||||
return { label: 'bounties' }
|
||||
}
|
||||
static defaultBadgeData = { label: 'bounties' }
|
||||
|
||||
static render({ total }) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user