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:
Caleb Cartwright
2020-09-08 17:03:12 -05:00
committed by GitHub
parent 542e2cf407
commit e9b3a0a921
5 changed files with 76 additions and 135 deletions

View File

@@ -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 {