mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
Sync upstream Gemini-CLI v0.8.2 (#838)
This commit is contained in:
parent
096fabb5d6
commit
eb95c131be
644 changed files with 70389 additions and 23709 deletions
22
scripts/pre-commit.js
Normal file
22
scripts/pre-commit.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { execSync } from 'node:child_process';
|
||||
import lintStaged from 'lint-staged';
|
||||
|
||||
try {
|
||||
// Get repository root
|
||||
const root = execSync('git rev-parse --show-toplevel').toString().trim();
|
||||
|
||||
// Run lint-staged with API directly
|
||||
const passed = await lintStaged({ cwd: root });
|
||||
|
||||
// Exit with appropriate code
|
||||
process.exit(passed ? 0 : 1);
|
||||
} catch {
|
||||
// Exit with error code
|
||||
process.exit(1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue