fix(tools): correct arguments destructuring for prs create
This commit is contained in:
1 parent
a7a5a4546f
commit
91a6733ee7
1 file changed
+1
-1
+1
-1
@@ -104,7 +104,7 @@ async function main() {
|
||||
}
|
||||
}
|
||||
} else if (sub === 'create') {
|
||||
const [,, head, base, title, ...bodyParts] = args;
|
||||
const [, head, base, title, ...bodyParts] = args;
|
||||
const body = bodyParts.join(' ') || '';
|
||||
if (!head || !base || !title) {
|
||||
console.error('Usage: bun tools/gitea.ts prs create <head_branch> <base_branch> <title> [body]');
|
||||
|
||||
Reference in new issue
Block a user