fix(tools): correct arguments destructuring for prs create

This commit is contained in:
Your Name committed 2026-10-18 08:34:53 +07:00
1 parent a7a5a4546f
commit 91a6733ee7
1 file changed
+1 -1
+1 -1
View File
@@ -104,7 +104,7 @@ async function main() {
} }
} }
} else if (sub === 'create') { } else if (sub === 'create') {
const [,, head, base, title, ...bodyParts] = args; const [, head, base, title, ...bodyParts] = args;
const body = bodyParts.join(' ') || ''; const body = bodyParts.join(' ') || '';
if (!head || !base || !title) { if (!head || !base || !title) {
console.error('Usage: bun tools/gitea.ts prs create <head_branch> <base_branch> <title> [body]'); console.error('Usage: bun tools/gitea.ts prs create <head_branch> <base_branch> <title> [body]');