hale-commenting-system 3.1.0 → 3.1.1

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "hale-commenting-system",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A commenting system for PatternFly React applications that allows designers and developers to add comments directly on design pages, sync with GitHub Issues, and link Jira tickets.",
5
5
  "homepage": "https://www.npmjs.com/package/hale-commenting-system",
6
6
  "license": "MIT",
7
7
  "main": "src/app/commenting-system/index.ts",
8
8
  "types": "src/app/commenting-system/index.ts",
9
9
  "bin": {
10
- "hale-commenting-system": "./scripts/integrate.js"
10
+ "hale-commenting-system": "scripts/integrate.js"
11
11
  },
12
12
  "files": [
13
13
  "src/app/commenting-system/",
@@ -1359,13 +1359,43 @@ async function main() {
1359
1359
  }
1360
1360
  ]);
1361
1361
 
1362
+ // Ask for target repo to store comments/issues
1363
+ console.log('\nWhere do you want to store comments as GitHub Issues?');
1364
+ console.log('This should be a repository you have write access to.\n');
1365
+
1366
+ const repoAnswers = await prompt([
1367
+ {
1368
+ type: 'input',
1369
+ name: 'owner',
1370
+ message: 'GitHub repository owner (username or organization):',
1371
+ default: owner,
1372
+ validate: (input) => {
1373
+ if (!input.trim()) return 'Owner is required';
1374
+ return true;
1375
+ }
1376
+ },
1377
+ {
1378
+ type: 'input',
1379
+ name: 'repo',
1380
+ message: 'GitHub repository name:',
1381
+ default: repo,
1382
+ validate: (input) => {
1383
+ if (!input.trim()) return 'Repository name is required';
1384
+ return true;
1385
+ }
1386
+ }
1387
+ ]);
1388
+
1389
+ const targetOwner = repoAnswers.owner;
1390
+ const targetRepo = repoAnswers.repo;
1391
+
1362
1392
  // Validate GitHub credentials
1363
1393
  console.log('\nšŸ” Validating GitHub credentials...');
1364
1394
  githubValid = await validateGitHubCredentials(
1365
1395
  githubAnswers.clientId,
1366
1396
  githubAnswers.clientSecret,
1367
- owner,
1368
- repo
1397
+ targetOwner,
1398
+ targetRepo
1369
1399
  );
1370
1400
 
1371
1401
  if (!githubValid) {
@@ -1378,8 +1408,8 @@ async function main() {
1378
1408
  githubConfig = {
1379
1409
  clientId: githubAnswers.clientId,
1380
1410
  clientSecret: githubAnswers.clientSecret,
1381
- owner: owner,
1382
- repo: repo
1411
+ owner: targetOwner,
1412
+ repo: targetRepo
1383
1413
  };
1384
1414
  } else {
1385
1415
  console.log('\nā­ļø Skipping GitHub setup. You can add it later by editing .env and .env.server files.\n');
@@ -1469,8 +1499,8 @@ async function main() {
1469
1499
  generateFiles({
1470
1500
  github: githubConfig,
1471
1501
  jira: jiraConfig,
1472
- owner: owner,
1473
- repo: repo
1502
+ owner: githubConfig ? githubConfig.owner : owner,
1503
+ repo: githubConfig ? githubConfig.repo : repo
1474
1504
  });
1475
1505
 
1476
1506
  // Step 5: Integrate into project