From f4d45ef335dc4a6827b573dc2aaa58df080256d6 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Tue, 6 May 2025 12:34:25 +0900 Subject: [PATCH] docs(instructions): Update pull request guidelines with checklist and template --- .github/instructions/base.instructions.md | 11 ++++++++++- src/cli/cliPrint.ts | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/instructions/base.instructions.md b/.github/instructions/base.instructions.md index e60fd4c2..a559fbb8 100644 --- a/.github/instructions/base.instructions.md +++ b/.github/instructions/base.instructions.md @@ -82,10 +82,19 @@ repomix/ - Description must start with a capital letter ## Pull Request Guidelines -- All pull requests must follow the template defined in `.github/pull_request_template.md` +- All pull requests must follow the template: + ```md + + + ## Checklist + + - [ ] Run `npm run test` + - [ ] Run `npm run lint` + ``` - Include a clear summary of the changes at the top of the pull request description - Reference any related issues using the format `#issue-number` + ## Dependencies and Testing - Inject dependencies through a deps object parameter for testability - Example: diff --git a/src/cli/cliPrint.ts b/src/cli/cliPrint.ts index 0b23e6b0..3f2f6333 100644 --- a/src/cli/cliPrint.ts +++ b/src/cli/cliPrint.ts @@ -72,7 +72,7 @@ export const printTopFiles = ( const topFiles = Object.entries(fileCharCounts) .sort((a, b) => b[1] - a[1]) .slice(0, topFilesLength); - + // Calculate total token count const totalTokens = Object.values(fileTokenCounts).reduce((sum, count) => sum + count, 0);