skillsets 0.4.2 → 0.4.3
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/dist/commands/submit.js +6 -3
- package/package.json +1 -1
package/dist/commands/submit.js
CHANGED
|
@@ -194,10 +194,13 @@ export async function submit() {
|
|
|
194
194
|
? `Update ${skillsetId} to v${skillset.version}`
|
|
195
195
|
: `Add ${skillsetId}`;
|
|
196
196
|
spawnSync('git', ['commit', '-m', commitMsg], { cwd: tempDir, stdio: 'ignore' });
|
|
197
|
-
// Push to origin
|
|
198
|
-
spinner.text = 'Pushing
|
|
197
|
+
// Push branch to origin
|
|
198
|
+
spinner.text = 'Pushing branch...';
|
|
199
199
|
execSync('gh auth setup-git', { cwd: tempDir, stdio: 'ignore' });
|
|
200
|
-
spawnSync('git', ['push', '-u', 'origin', branchName, '--force'], { cwd: tempDir,
|
|
200
|
+
const pushResult = spawnSync('git', ['push', '-u', 'origin', branchName, '--force'], { cwd: tempDir, encoding: 'utf-8' });
|
|
201
|
+
if (pushResult.status !== 0) {
|
|
202
|
+
throw new Error(pushResult.stderr || 'Failed to push branch');
|
|
203
|
+
}
|
|
201
204
|
// Create PR
|
|
202
205
|
spinner.text = 'Creating pull request...';
|
|
203
206
|
const prTitle = isUpdate
|