From e5cdc19f78f763e9d88138abe571fc2be88ca1f3 Mon Sep 17 00:00:00 2001 From: 0024 <62194324+onishi-kohei@users.noreply.github.com> Date: Sun, 15 Jan 2023 23:00:58 +0900 Subject: [PATCH] refactor: fix a typo in the name of file most-commit-lauguage-card.ts. (#130) * fix file name * fix lauguage to language * revert dist/index.js and dist/index.js.map --- api/cards/most-commit-language.ts | 4 ++-- src/app.ts | 2 +- ...t-commit-lauguage-card.ts => most-commit-language-card.ts} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename src/cards/{most-commit-lauguage-card.ts => most-commit-language-card.ts} (100%) diff --git a/api/cards/most-commit-language.ts b/api/cards/most-commit-language.ts index f60233670..da7194034 100644 --- a/api/cards/most-commit-language.ts +++ b/api/cards/most-commit-language.ts @@ -1,4 +1,4 @@ -import {getCommitsLanguageSVGWithThemeName} from '../../src/cards/most-commit-lauguage-card'; +import {getCommitsLanguageSVGWithThemeName} from '../../src/cards/most-commit-language-card'; import {changToNextGitHubToken} from '../utils/github-token-updater'; import {getErrorMsgCard} from '../utils/error-card'; import {translateLanguage} from '../../src/utils/translator' @@ -6,7 +6,7 @@ import type {VercelRequest, VercelResponse} from '@vercel/node'; export default async (req: VercelRequest, res: VercelResponse) => { let {username, theme = 'default', exclude = ""} = req.query; - + if (typeof theme !== 'string') { res.status(400).send('theme must be a string'); return; diff --git a/src/app.ts b/src/app.ts index 832da1d12..f5317145a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,7 +1,7 @@ import * as core from '@actions/core'; import {createProfileDetailsCard} from './cards/profile-details-card'; import {createReposPerLanguageCard} from './cards/repos-per-language-card'; -import {createCommitsPerLanguageCard} from './cards/most-commit-lauguage-card'; +import {createCommitsPerLanguageCard} from './cards/most-commit-language-card'; import {createStatsCard} from './cards/stats-card'; import {createProductiveTimeCard} from './cards/productive-time-card'; import {spawn} from 'child_process'; diff --git a/src/cards/most-commit-lauguage-card.ts b/src/cards/most-commit-language-card.ts similarity index 100% rename from src/cards/most-commit-lauguage-card.ts rename to src/cards/most-commit-language-card.ts