* switch from github workflows to github actions workflows * update github actions workflow badge to use api * add test case for missing branch param * custom deprecation message
29 lines
731 B
JavaScript
29 lines
731 B
JavaScript
import { BaseService } from '../index.js'
|
|
|
|
export default class DeprecatedGithubWorkflowStatus extends BaseService {
|
|
static category = 'build'
|
|
|
|
static route = {
|
|
base: 'github/workflow/status',
|
|
pattern: ':various+',
|
|
}
|
|
|
|
static examples = []
|
|
|
|
static defaultBadgeData = { label: 'build' }
|
|
|
|
async handle() {
|
|
return {
|
|
label: 'build',
|
|
message: 'https://github.com/badges/shields/issues/8671',
|
|
/*
|
|
This is a 'special' deprecation because we are making a breaking change
|
|
We've implemented it as a custom class instead of a normal
|
|
deprecatedService so that we can include link.
|
|
*/
|
|
link: ['https://github.com/badges/shields/issues/8671'],
|
|
color: 'red',
|
|
}
|
|
}
|
|
}
|