Skip to content

Commit 533f7b5

Browse files
committed
docs(repo-management): Update stage and commit instructions for Husky pre-commit hook
1 parent 20b816b commit 533f7b5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/instructions/repo-management.instructions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ Only `packages/core` is published. The `"files"` field in its `package.json` con
7777
- `README.md`
7878
- `LICENSE`
7979

80-
### Stage and Commit Instructions
80+
### Stage and Commit
8181

82-
When working in local development, the repository is configured with a Husky pre-commit hook. This hook ensures that tasks such as linting and typechecking are executed before the commit is finalized. As a result, when staging and committing changes, Copilot must wait for these tasks to complete and summarize their output.
82+
In local development, this repository uses a Husky pre-commit hook to enforce linting, typechecking, and other tasks before commits are finalized. When staging and committing changes, Copilot must:
8383

84-
#### Steps:
85-
1. Stage the changes using `git add <file>`.
86-
2. Commit the changes using `git commit -m "<commit message>"`.
87-
3. Wait for the pre-commit hook tasks to complete.
88-
4. Summarize the output of the pre-commit hook tasks, including any errors or warnings encountered.
84+
1. Wait for the pre-commit hook tasks to complete.
85+
2. Summarize the output of the pre-commit hook tasks, including any errors or warnings encountered.
86+
3. Ensure that the commit is finalized only if all pre-commit tasks pass successfully.
87+
88+
If any pre-commit tasks fail, Copilot must report the failure and provide guidance on resolving the issues before retrying the commit.

0 commit comments

Comments
 (0)