claude-issue-solver 1.24.2 ā 1.24.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/README.md +2 -0
- package/dist/commands/config.js +13 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -279,6 +279,8 @@ Claude auto-detects whether you're reviewing your own PR or someone else's:
|
|
|
279
279
|
cis config bot-token # Interactive setup with instructions
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
+
> **Note**: For private repos, use a **Classic Token** with `repo` scope. Fine-grained tokens don't work well for collaborator access to repos you don't own.
|
|
283
|
+
|
|
282
284
|
## Tips
|
|
283
285
|
|
|
284
286
|
- PRs are created automatically when Claude makes commits - no need to wait until the end
|
package/dist/commands/config.js
CHANGED
|
@@ -198,16 +198,20 @@ ${chalk_1.default.bold('You have two options:')}\n`);
|
|
|
198
198
|
}
|
|
199
199
|
// Open GitHub token page
|
|
200
200
|
console.log(chalk_1.default.bold('\nš Creating a Personal Access Token\n'));
|
|
201
|
-
console.log(`I'll open GitHub's token creation page.
|
|
201
|
+
console.log(`I'll open GitHub's token creation page.
|
|
202
202
|
|
|
203
|
-
${chalk_1.default.bold('
|
|
204
|
-
|
|
205
|
-
⢠Expiration: ${chalk_1.default.cyan('90 days')} (or your preference)
|
|
206
|
-
⢠Repository access: ${chalk_1.default.cyan('Only select repositories')} (pick your repos)
|
|
203
|
+
${chalk_1.default.bold.yellow('ā ļø Use a Classic Token for private repos you don\'t own!')}
|
|
204
|
+
Fine-grained tokens don't work well for collaborator access.
|
|
207
205
|
|
|
208
|
-
${chalk_1.default.bold('
|
|
209
|
-
⢠${chalk_1.default.cyan('
|
|
210
|
-
⢠${chalk_1.default.cyan('
|
|
206
|
+
${chalk_1.default.bold('Option 1: Classic Token')} ${chalk_1.default.green('(recommended for private repos)')}
|
|
207
|
+
⢠Click "${chalk_1.default.cyan('Generate new token (classic)')}"
|
|
208
|
+
⢠Note: ${chalk_1.default.cyan('claude-issue-solver-bot')}
|
|
209
|
+
⢠Expiration: ${chalk_1.default.cyan('90 days')}
|
|
210
|
+
⢠Scope: ${chalk_1.default.cyan('repo')} (full control of private repositories)
|
|
211
|
+
|
|
212
|
+
${chalk_1.default.bold('Option 2: Fine-grained Token')} ${chalk_1.default.dim('(only for repos the bot owns)')}
|
|
213
|
+
⢠Repository access: ${chalk_1.default.cyan('All repositories')}
|
|
214
|
+
⢠Permissions: ${chalk_1.default.cyan('Pull requests')} (Read/write), ${chalk_1.default.cyan('Contents')} (Read)
|
|
211
215
|
`);
|
|
212
216
|
const { openBrowser } = await inquirer_1.default.prompt([
|
|
213
217
|
{
|
|
@@ -218,7 +222,7 @@ ${chalk_1.default.bold('Permissions needed:')}
|
|
|
218
222
|
},
|
|
219
223
|
]);
|
|
220
224
|
if (openBrowser) {
|
|
221
|
-
const tokenUrl = 'https://github.com/settings/
|
|
225
|
+
const tokenUrl = 'https://github.com/settings/tokens';
|
|
222
226
|
try {
|
|
223
227
|
if (process.platform === 'darwin') {
|
|
224
228
|
(0, child_process_1.execSync)(`open "${tokenUrl}"`, { stdio: 'pipe' });
|