Files
shields/services/github/github-workflow-status.service.js
chris48s 61dd6c0443 switch from github workflows to github actions workflows; test [githubactionsworkflowstatus githubworkflowstatus] (#8475)
* 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
2022-12-15 18:36:17 +00:00

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