@slahon/lazykit 1.2.3 → 1.2.5
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/.claude/settings.local.json +8 -0
- package/init.js +3 -3
- package/package.json +1 -1
- package/remove.js +1 -1
- package/update.js +1 -1
package/init.js
CHANGED
|
@@ -7,7 +7,7 @@ const chalk = require('chalk');
|
|
|
7
7
|
const ora = require('ora');
|
|
8
8
|
|
|
9
9
|
const { log } = require('./logger');
|
|
10
|
-
const {
|
|
10
|
+
const { confirm } = require('./prompt');
|
|
11
11
|
const { isGitRepo, getGitRemote, parseGitHubRepo, isGhCliAvailable, isGhAuthenticated, detectStack, hasBranchProtection } = require('./git');
|
|
12
12
|
const { generateWorkflow } = require('./workflow');
|
|
13
13
|
const { generateClaudeMd } = require('./claude-md');
|
|
@@ -74,7 +74,7 @@ async function init({ dryRun = false } = {}) {
|
|
|
74
74
|
log.title('Configure LazyKit');
|
|
75
75
|
log.blank();
|
|
76
76
|
|
|
77
|
-
const label =
|
|
77
|
+
const label = 'lazykit';
|
|
78
78
|
const autoTrigger = await confirm('Trigger Claude on every new issue automatically? (no = only when you apply the label)', true);
|
|
79
79
|
const wantClaudeMd = await confirm('Generate CLAUDE.md project guide?', true);
|
|
80
80
|
|
|
@@ -248,7 +248,7 @@ async function init({ dryRun = false } = {}) {
|
|
|
248
248
|
].join(' ');
|
|
249
249
|
execSync(`git add ${files}`, { stdio: 'pipe' });
|
|
250
250
|
execSync(`git commit -m "Add LazyKit automation"`, { stdio: 'pipe' });
|
|
251
|
-
execSync(`git push`, { stdio: 'pipe' });
|
|
251
|
+
execSync(`git push -u origin HEAD`, { stdio: 'pipe' });
|
|
252
252
|
pushSpinner.succeed(chalk.green('Committed and pushed — workflow is live'));
|
|
253
253
|
} catch {
|
|
254
254
|
pushSpinner.fail(chalk.red('Push failed.'));
|
package/package.json
CHANGED
package/remove.js
CHANGED
|
@@ -90,7 +90,7 @@ async function remove() {
|
|
|
90
90
|
try {
|
|
91
91
|
execSync(`git add ${deleted.map(f => `"${f}"`).join(' ')}`, { stdio: 'pipe' });
|
|
92
92
|
execSync(`git commit -m "Remove LazyKit automation"`, { stdio: 'pipe' });
|
|
93
|
-
execSync(`git push`, { stdio: 'pipe' });
|
|
93
|
+
execSync(`git push -u origin HEAD`, { stdio: 'pipe' });
|
|
94
94
|
spinner.succeed(chalk.green('Committed and pushed'));
|
|
95
95
|
} catch {
|
|
96
96
|
spinner.fail('Push failed — commit and push manually');
|
package/update.js
CHANGED
|
@@ -75,7 +75,7 @@ async function update({ dryRun = false } = {}) {
|
|
|
75
75
|
try {
|
|
76
76
|
execSync(`git add ${filesToPush.join(' ')}`, { stdio: 'pipe' });
|
|
77
77
|
execSync(`git commit -m "Update LazyKit configuration"`, { stdio: 'pipe' });
|
|
78
|
-
execSync(`git push`, { stdio: 'pipe' });
|
|
78
|
+
execSync(`git push -u origin HEAD`, { stdio: 'pipe' });
|
|
79
79
|
spinner.succeed(chalk.green('Committed and pushed'));
|
|
80
80
|
} catch {
|
|
81
81
|
spinner.fail('Push failed — commit and push manually');
|