Files
shields/services/github/github-workflow-status.service.js
T
jNullj e93c8b69aa Update labels of deprecated services [GithubWorkflowStatus PubPopularity] (#11369)
* 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
2025-09-27 19:59:08 +00:00

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',
}
}
}