mirror of
https://github.com/badges/shields.git
synced 2026-11-21 16:06:35 +03:00
* update pub-popularity deprecation label updated docs now require deprecated service labels to show service name. Fixes #11368 * update GithubWorkflowStatus deprecation label comply with new doc requirement for deprecatoin label showing service name. Fixes deprecation label compliance with updated docs Fixes #11368
29 lines
760 B
JavaScript
29 lines
760 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 openApi = {}
|
|
|
|
static defaultBadgeData = { label: 'githubworkflowstatus' }
|
|
|
|
async handle() {
|
|
return {
|
|
label: 'githubworkflowstatus',
|
|
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',
|
|
}
|
|
}
|
|
}
|