File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,6 +193,18 @@ All code elements MUST be sorted:
193193 - ** Important** : Even when using ` --no-verify ` , you MUST still run linting/checking commands manually first
194194 - ** Rationale** : Pre-commit hooks run linting and type-checking which are critical for SDK source code but less critical for non-published files
195195
196+ ### Batch Commits Strategy
197+ - ** When making many changes** : Break large changesets into small, logical commits
198+ - ** First commit with tests** : Run full test suite (hooks) for the first commit only
199+ - ** Subsequent commits with --no-verify** : Use ` --no-verify ` for follow-up commits
200+ - ** Example workflow** :
201+ 1 . Make all changes and ensure ` pnpm run fix && pnpm run check ` passes
202+ 2 . Stage and commit core changes with hooks: ` git commit -m "message" `
203+ 3 . Stage and commit related changes: ` git commit --no-verify -m "message" `
204+ 4 . Stage and commit cleanup: ` git commit --no-verify -m "message" `
205+ 5 . Stage and commit docs: ` git commit --no-verify -m "message" `
206+ - ** Rationale** : Reduces commit time while maintaining code quality through initial validation
207+
196208### Changelog Management
197209- ** 🚨 MANDATORY** : When creating changelog entries for version bumps:
198210 - ** Check OpenAPI definition updates** : Always analyze ` types/api.d.ts ` changes
You can’t perform that action at this time.
0 commit comments