Skip to content

Commit 8a837d1

Browse files
committed
chore: update prompt instructions in templates 📝
- Clarify instruction for using fenced code blocks. - Standardize instruction across system and user templates.
1 parent ca1ff2a commit 8a837d1

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

templates/system.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Please generate a git commit message with the specified requirements.
1717
- Steer clear of excessive information.
1818
- Eliminate formal or superfluous language.
1919

20-
3. An emoji can be used appropriately at the end of the statement.
20+
3. An emoji can be used appropriately at the end of the statement for the first line.
2121

2222
4. Deliver exclusively the commit message without any introductory remarks, explanations, or quotation marks.
2323

@@ -27,16 +27,7 @@ Please generate a git commit message with the specified requirements.
2727

2828
Here are a few examples that will be demonstrated below.
2929

30-
```
3130
feat: add user auth system
3231

3332
- Add JWT tokens for API auth
3433
- Handle token refresh for long sessions
35-
```
36-
37-
```
38-
fix: resolve memory leak in worker pool
39-
40-
- Clean up idle connections
41-
- Add timeout for stale workers
42-
```

templates/user.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
The latest commit history from the repository is shown here.
1+
The latest commit history from the repository is shown here, quote by using the "```" charsets.
22

33
```
44
{{logs}}
55
```
66

7-
Additionally, a variety of content is provided below.
7+
Additionally, a variety of content is provided below, quote by using the "```" charsets.
88

99
```
1010
{{diffs}}

0 commit comments

Comments
 (0)