@snapcommit/cli 3.8.4 → 3.8.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/dist/commands/github-connect.js +2 -2
- package/dist/lib/github.js +2 -2
- package/dist/repl.js +1 -1
- package/package.json +1 -1
|
@@ -247,7 +247,7 @@ async function githubStatusCommand() {
|
|
|
247
247
|
const config = getGitHubConfig();
|
|
248
248
|
if (!config) {
|
|
249
249
|
console.log(chalk_1.default.yellow('\n⚠️ GitHub not connected\n'));
|
|
250
|
-
console.log(chalk_1.default.gray('Run
|
|
250
|
+
console.log(chalk_1.default.gray('Run ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' inside snap to connect\n'));
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
253
|
console.log(chalk_1.default.green('\n✅ GitHub Connected\n'));
|
|
@@ -267,5 +267,5 @@ async function githubDisconnectCommand() {
|
|
|
267
267
|
console.log(chalk_1.default.yellow(`\n Disconnecting GitHub (@${config.username})...\n`));
|
|
268
268
|
clearGitHubToken();
|
|
269
269
|
console.log(chalk_1.default.green(' ✅ GitHub disconnected successfully!\n'));
|
|
270
|
-
console.log(chalk_1.default.gray(' Run
|
|
270
|
+
console.log(chalk_1.default.gray(' Run ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' inside snap to reconnect.\n'));
|
|
271
271
|
}
|
package/dist/lib/github.js
CHANGED
|
@@ -106,7 +106,7 @@ async function findIssueNumber(context) {
|
|
|
106
106
|
async function githubRequest(endpoint, options = {}) {
|
|
107
107
|
const token = (0, github_connect_1.getGitHubToken)();
|
|
108
108
|
if (!token) {
|
|
109
|
-
throw new Error('GitHub not connected. Run
|
|
109
|
+
throw new Error('GitHub not connected. Run "github connect" inside snap');
|
|
110
110
|
}
|
|
111
111
|
const url = `${GITHUB_API}${endpoint}`;
|
|
112
112
|
const headers = {
|
|
@@ -369,7 +369,7 @@ async function getPullRequestDiff(prNumber) {
|
|
|
369
369
|
}
|
|
370
370
|
const token = (0, github_connect_1.getGitHubToken)();
|
|
371
371
|
if (!token) {
|
|
372
|
-
throw new Error('GitHub not connected. Run
|
|
372
|
+
throw new Error('GitHub not connected. Run "github connect" inside snap');
|
|
373
373
|
}
|
|
374
374
|
const response = await fetch(`${GITHUB_API}/repos/${repo.owner}/${repo.name}/pulls/${prNumber}`, {
|
|
375
375
|
headers: {
|
package/dist/repl.js
CHANGED
|
@@ -96,7 +96,7 @@ async function startREPL() {
|
|
|
96
96
|
console.log(chalk_1.default.yellow.bold('│ 🐙 GITHUB FEATURES (OPTIONAL) │'));
|
|
97
97
|
console.log(chalk_1.default.yellow.bold('└─────────────────────────────────────────┘\n'));
|
|
98
98
|
console.log(chalk_1.default.gray(' Want to use GitHub features? (create PRs, check CI, etc.)\n'));
|
|
99
|
-
console.log(chalk_1.default.gray(' Run: ') + chalk_1.default.cyan('
|
|
99
|
+
console.log(chalk_1.default.gray(' Run: ') + chalk_1.default.cyan('github connect') + chalk_1.default.gray(' (inside snap)'));
|
|
100
100
|
console.log(chalk_1.default.gray(' This creates a CLI token for GitHub API access.\n'));
|
|
101
101
|
}
|
|
102
102
|
console.log(chalk_1.default.gray('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n'));
|