We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ac031 commit 32d38ceCopy full SHA for 32d38ce
bin/cmd.js
@@ -141,12 +141,12 @@ if (args.length === 1 && args[0] === '-') {
141
}
142
143
// Replace args with the commit data directly
144
- args.splice(0, 1, ...commits.map(commit => {
+ for (let i = 0; i < commits.length; i++) {
145
if (!commit.id || !commit.message) {
146
throw new Error('Each commit must have "id" and "message" properties')
147
148
- return { sha: commit.id, ...commit }
149
- }))
+ args[i] = { sha: commit.id, ...commit }
+ }
150
run()
151
} catch (err) {
152
console.error('Error parsing JSON input:', err.message)
0 commit comments