aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/instructions/commit.instructions.md
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-16 12:59:29 +0800
committerGitHub <noreply@github.com>2026-01-16 12:59:29 +0800
commit5c875de340009692ef47f1f6886f721adf8e4637 (patch)
tree879b1c49a04a463e2887386c399a5f9f80ac7fb1 /.github/instructions/commit.instructions.md
parentd02dd4df19e763a4dc94950e3a929ea454dfa500 (diff)
parent77031c3f21bd100acbac838d0b02f5f04bf66188 (diff)
downloadDropOut-5c875de340009692ef47f1f6886f721adf8e4637.tar.gz
DropOut-5c875de340009692ef47f1f6886f721adf8e4637.zip
Merge pull request #50 from BegoniaHe/docs/copilot-instructions
Diffstat (limited to '.github/instructions/commit.instructions.md')
-rw-r--r--.github/instructions/commit.instructions.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/instructions/commit.instructions.md b/.github/instructions/commit.instructions.md
new file mode 100644
index 0000000..cc29e9c
--- /dev/null
+++ b/.github/instructions/commit.instructions.md
@@ -0,0 +1,38 @@
+---
+applyTo: "**"
+---
+
+# Commit Helper Instructions
+
+When user requests commit help → Follow <a>.github/agents/commit.agent.md</a>
+
+## Critical Rules
+
+1. **Language**: Commit message ALWAYS in **English** (unless user specifies otherwise)
+2. **Explanation**: Use **user's request language** ONLY when commit language differs
+ - Chinese user + English commit → Explain in Chinese
+ - English user + Chinese commit → Explain in English
+ - Same language → No extra explanation needed
+3. **Confirmation**: ALWAYS ask before committing (unless "commit directly" requested)
+
+## Quick Reference
+
+**Format**: `<type>[scope]: <description>`
+
+**Common types**: `feat` `fix` `docs` `refactor` `perf` `test` `chore`
+
+**AI commits MUST include**: `Reviewed-by: [MODEL_NAME]`
+
+**Spec**: <a>.github/references/git/conventional-commit.md</a>
+
+## Common Mistakes
+
+| Wrong | Right |
+|-------|-------|
+| `feat: Added feature` | `feat: add feature` (imperative) |
+| `Fix bug.` | `fix: resolve auth issue` (lowercase, no period) |
+| `feat: add A, refactor B, update C` | Split into 3 commits |
+
+## User Triggers
+
+"create commit", "commit message", "conventional commit" \ No newline at end of file