skillsets 0.4.1 → 0.4.2
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 +5 -10
- package/package.json +1 -1
package/dist/commands/submit.js
CHANGED
|
@@ -194,15 +194,10 @@ 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
|
|
198
|
-
spinner.text = 'Pushing to
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
spawnSync('git', ['remote', 'add', 'fork', forkUrl], { cwd: tempDir, stdio: 'ignore' });
|
|
202
|
-
const pushResult = spawnSync('git', ['push', '-u', 'fork', branchName, '--force'], { cwd: tempDir, encoding: 'utf-8' });
|
|
203
|
-
if (pushResult.status !== 0) {
|
|
204
|
-
throw new Error(pushResult.stderr || 'Failed to push to fork');
|
|
205
|
-
}
|
|
197
|
+
// Push to origin (gh auth setup-git ensures git uses gh's credentials)
|
|
198
|
+
spinner.text = 'Pushing to registry...';
|
|
199
|
+
execSync('gh auth setup-git', { cwd: tempDir, stdio: 'ignore' });
|
|
200
|
+
spawnSync('git', ['push', '-u', 'origin', branchName, '--force'], { cwd: tempDir, stdio: 'ignore' });
|
|
206
201
|
// Create PR
|
|
207
202
|
spinner.text = 'Creating pull request...';
|
|
208
203
|
const prTitle = isUpdate
|
|
@@ -250,7 +245,7 @@ _Add any additional context for reviewers here._
|
|
|
250
245
|
---
|
|
251
246
|
Submitted via \`npx skillsets submit\`
|
|
252
247
|
`;
|
|
253
|
-
const prResult = spawnSync('gh', ['pr', 'create', '--repo', REGISTRY_REPO, '--
|
|
248
|
+
const prResult = spawnSync('gh', ['pr', 'create', '--repo', REGISTRY_REPO, '--title', prTitle, '--body', prBody], {
|
|
254
249
|
cwd: tempDir,
|
|
255
250
|
encoding: 'utf-8',
|
|
256
251
|
});
|