scai 0.1.54 → 0.1.55
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 +1 -1
- package/dist/commands/ReviewCmd.js +2 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ No more struggling to write pull request descriptions by hand. `scai git review`
|
|
|
65
65
|
To interact with GitHub and create pull requests, `scai` needs a personal access token with **repo** permissions.
|
|
66
66
|
|
|
67
67
|
1. **Create your GitHub Access Token**
|
|
68
|
-
Follow this link to generate a token: [https://github.com/settings/tokens
|
|
68
|
+
Follow this link to generate a token: [https://github.com/settings/personal-access-tokens](https://github.com/settings/personal-access-tokens)
|
|
69
69
|
|
|
70
70
|
Make sure you enable at least:
|
|
71
71
|
|
|
@@ -30,17 +30,13 @@ export async function getPullRequestsForReview(token, owner, repo, username, bra
|
|
|
30
30
|
filtered.push({ pr, diff });
|
|
31
31
|
}
|
|
32
32
|
catch (err) {
|
|
33
|
-
console.warn(`⚠️ Could not fetch diff for PR #${pr.number}: ${err.message}`);
|
|
34
33
|
failedPRs.push(pr);
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
if (failedPRs.length > 0) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
console.warn(` - #${pr.number}: ${pr.title}`);
|
|
42
|
-
}
|
|
43
|
-
console.warn('These PRs will not be included in the review summary.\n');
|
|
38
|
+
const failedList = failedPRs.map(pr => `#${pr.number}`).join(', ');
|
|
39
|
+
console.warn(`⚠️ Skipped ${failedPRs.length} PR(s) (${failedList}) due to diff fetch errors.`);
|
|
44
40
|
}
|
|
45
41
|
return filtered;
|
|
46
42
|
}
|