mirror of
https://github.com/badges/shields.git
synced 2026-11-21 16:06:35 +03:00
refactor [Github JsDelivr NpmDownloads NpmStatDownloads GitlabIssues] to use routeEnum & add hacktoberfest 2026 (#12166)
* refactor: use routeEnum at Github services & add hacktoberfest 2026 * refactor: use routeEnum at JsDelivr services * refactor: use routeEnum at NpmDownloads * refactor: use routeEnum at NpmStatDownloads service * refactor: use routeEnum at GitlabIssues
This commit is contained in:
1 parent
e2ce3a324a
commit
6da11e624b
11 files changed
+38
-11
No files matched your search
@@ -31,9 +31,10 @@ export default class GitHubCommitActivity extends GithubAuthV4Service {
|
||||
static category = 'activity'
|
||||
static route = {
|
||||
base: 'github/commit-activity',
|
||||
pattern: ':interval(t|y|m|4w|w)/:user/:repo/:branch*',
|
||||
pattern: ':interval/:user/:repo/:branch*',
|
||||
queryParamSchema,
|
||||
}
|
||||
static routeEnum = ['t', 'y', 'm', '4w', 'w']
|
||||
|
||||
static openApi = {
|
||||
'/github/commit-activity/{interval}/{user}/{repo}': {
|
||||
|
||||
Reference in new issue
Block a user