Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit c472f72

Browse files
committed
chore(deno.jsonc, deno.lock, main.ts): Update tasks and dependencies
- Add 'update' task to pull latest changes and install dependencies - Update dependencies in deno.lock - Improve commit message generator logic BREAKING CHANGE: Removed 'install' task, use 'update' instead
1 parent 0908b8f commit c472f72

3 files changed

Lines changed: 57 additions & 16 deletions

File tree

deno.jsonc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"tasks": {
33
"start": "deno run --allow-net --allow-read --allow-write --allow-env --allow-run=\"git,vim\" main.ts",
4-
"install": "deno run --allow-read --allow-write --allow-run install.ts",
5-
"build": "deno run --allow-read --allow-write --allow-run scripts/build.ts"
4+
"install": "deno run --allow-read --allow-write --allow-run scripts/install.ts",
5+
"build": "deno run --allow-read --allow-write --allow-run scripts/build.ts",
6+
"update": "git pull && deno task install"
67
},
78
"name": "auto-commit",
89
"version": "1.0.0",
910
"exports": "./main.ts",
10-
"description": "AI-powered git commit message generator using Claude 3",
11+
"description": "Automatically generate git commit messages.",
1112
"author": "Sid Edwards",
1213
"license": "MIT"
1314
}

deno.lock

Lines changed: 38 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.ts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -616,17 +616,21 @@ Generate commit messages directly without explanations or markdown formatting.`;
616616
${flags.learn ? commitPrompt : formatTemplate}
617617
618618
IMPORTANT:
619-
1. Base your message ONLY on the actual changes in the diff
620-
2. Do not make assumptions or add fictional features
621-
3. Never include issue numbers unless they appear in the diff
622-
4. Do not include any format templates or placeholders
623-
5. Never output the response format template itself
624-
6. Only include ONE header line (<type>(<scope>): <subject>)
625-
7. Never duplicate any lines, especially the header
626-
8. Sort changes by priority and logical groups
627-
9. Never include preamble or explanation
628-
10. Never include the diff or any git-specific output
629-
11. Structure should be:
619+
1. Base your message on ALL changes in the diff
620+
2. Consider ALL files being modified (${stagedFiles.join(', ')})
621+
3. Do not focus only on the first file
622+
4. Summarize the overall changes across all files
623+
5. Include significant changes from each modified file
624+
6. Do not make assumptions or add fictional features
625+
7. Never include issue numbers unless they appear in the diff
626+
8. Do not include any format templates or placeholders
627+
9. Never output the response format template itself
628+
10. Only include ONE header line (<type>(<scope>): <subject>)
629+
11. Never duplicate any lines, especially the header
630+
12. Sort changes by priority and logical groups
631+
13. Never include preamble or explanation
632+
14. Never include the diff or any git-specific output
633+
15. Structure should be:
630634
- Single header line
631635
- Blank line
632636
- Body with bullet points

0 commit comments

Comments
 (0)