@snelusha/noto 0.2.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli.cjs +9 -2
- package/dist/cli.mjs +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<h1 align="center"
|
|
1
|
+
<h1 align="center">noto ✨</h1>
|
|
2
2
|
<p align="center"><sup>(/nōto/, <em>notebook</em> in Japanese)</sup></p>
|
|
3
|
-
<
|
|
3
|
+
<img src="https://github.com/snelusha/static/blob/main/noto/banner.png?raw=true" align="center"></img>
|
|
4
4
|
|
|
5
5
|
<pre align="center">
|
|
6
6
|
<p>npm install -g <b>@snelusha/noto</b></p>
|
package/dist/cli.cjs
CHANGED
|
@@ -156,7 +156,14 @@ async function generateCommitMessage(diff) {
|
|
|
156
156
|
messages: [
|
|
157
157
|
{
|
|
158
158
|
role: "system",
|
|
159
|
-
content:
|
|
159
|
+
content: `You are tasked with generating a Git commit message for the following staged changes across multiple files. Strictly follow the instructions given below to generate the commit message. The instructions are given according to order of importance, as such, make sure each instruction is followed before moving on to the next. Likewise, make sure all instructions are followed successfully.
|
|
160
|
+
- Ensure the description is written in the present-tense(start with a present tense verb such as add, fix, update, remove, improve, implement, etc...) (IMPORTANT! follow this for java repositories as well).
|
|
161
|
+
- Identify the key changes only and generate a detailed but brief commit message in the format "<type>: <description>".
|
|
162
|
+
- Use one of these types: feat, fix, refactor, docs, test, or chore.
|
|
163
|
+
- The commit message must be a single line, in all lowercase, without a scope or body, and no full stops at the end.
|
|
164
|
+
- Ensure the message does not exceed 72 characters.
|
|
165
|
+
- Do not mention file names unless a file was renamed or is essential for understanding the changes.
|
|
166
|
+
- Focus on the most important changes.`
|
|
160
167
|
},
|
|
161
168
|
{
|
|
162
169
|
role: "user",
|
|
@@ -168,7 +175,7 @@ ${diff}`
|
|
|
168
175
|
return message.text.trim();
|
|
169
176
|
}
|
|
170
177
|
|
|
171
|
-
const version = "0.
|
|
178
|
+
const version = "0.3.1";
|
|
172
179
|
|
|
173
180
|
yargs__default(helpers.hideBin(process.argv)).scriptName("noto").usage("$0 [args]").command(
|
|
174
181
|
"config",
|
package/dist/cli.mjs
CHANGED
|
@@ -144,7 +144,14 @@ async function generateCommitMessage(diff) {
|
|
|
144
144
|
messages: [
|
|
145
145
|
{
|
|
146
146
|
role: "system",
|
|
147
|
-
content:
|
|
147
|
+
content: `You are tasked with generating a Git commit message for the following staged changes across multiple files. Strictly follow the instructions given below to generate the commit message. The instructions are given according to order of importance, as such, make sure each instruction is followed before moving on to the next. Likewise, make sure all instructions are followed successfully.
|
|
148
|
+
- Ensure the description is written in the present-tense(start with a present tense verb such as add, fix, update, remove, improve, implement, etc...) (IMPORTANT! follow this for java repositories as well).
|
|
149
|
+
- Identify the key changes only and generate a detailed but brief commit message in the format "<type>: <description>".
|
|
150
|
+
- Use one of these types: feat, fix, refactor, docs, test, or chore.
|
|
151
|
+
- The commit message must be a single line, in all lowercase, without a scope or body, and no full stops at the end.
|
|
152
|
+
- Ensure the message does not exceed 72 characters.
|
|
153
|
+
- Do not mention file names unless a file was renamed or is essential for understanding the changes.
|
|
154
|
+
- Focus on the most important changes.`
|
|
148
155
|
},
|
|
149
156
|
{
|
|
150
157
|
role: "user",
|
|
@@ -156,7 +163,7 @@ ${diff}`
|
|
|
156
163
|
return message.text.trim();
|
|
157
164
|
}
|
|
158
165
|
|
|
159
|
-
const version = "0.
|
|
166
|
+
const version = "0.3.1";
|
|
160
167
|
|
|
161
168
|
yargs(hideBin(process.argv)).scriptName("noto").usage("$0 [args]").command(
|
|
162
169
|
"config",
|