linear-github-cli 1.3.4 → 1.3.6
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 +9 -7
- package/dist/commands/create-parent.js +0 -17
- package/dist/commands/create-sub.js +0 -17
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -241,13 +241,15 @@ The tool waits 5 seconds for Linear sync. If the issue still isn't found:
|
|
|
241
241
|
|
|
242
242
|
```
|
|
243
243
|
lg (CLI)
|
|
244
|
-
├──
|
|
245
|
-
├──
|
|
246
|
-
│ ├──
|
|
247
|
-
│
|
|
248
|
-
|
|
249
|
-
├──
|
|
250
|
-
|
|
244
|
+
├── src/
|
|
245
|
+
│ ├── cli.ts # CLI entry point (Commander.js)
|
|
246
|
+
│ ├── commands/
|
|
247
|
+
│ │ ├── create-parent.ts # Parent issue command
|
|
248
|
+
│ │ └── create-sub.ts # Sub-issue command
|
|
249
|
+
│ ├── linear-client.ts # Linear SDK wrapper
|
|
250
|
+
│ ├── github-client.ts # GitHub CLI/API wrapper
|
|
251
|
+
│ └── input-handler.ts # Interactive prompts (Inquirer.js)
|
|
252
|
+
└── scripts/ # Helper shell scripts
|
|
251
253
|
```
|
|
252
254
|
|
|
253
255
|
## Development
|
|
@@ -30,23 +30,6 @@ async function createParentIssue() {
|
|
|
30
30
|
const inputHandler = new input_handler_1.InputHandler(linearClient, githubClient);
|
|
31
31
|
const repo = await inputHandler.selectRepository();
|
|
32
32
|
githubClient.repo = repo;
|
|
33
|
-
// Check for unpushed commits on current branch
|
|
34
|
-
const unpushedCheck = (0, branch_utils_1.checkUnpushedCommitsOnCurrentBranch)();
|
|
35
|
-
if (unpushedCheck.hasUnpushed) {
|
|
36
|
-
console.log('\n⚠️ Warning: There are unpushed commits on the current branch.');
|
|
37
|
-
console.log(` Found ${unpushedCheck.count} unpushed commit(s):`);
|
|
38
|
-
unpushedCheck.commits.forEach(commit => {
|
|
39
|
-
console.log(` - ${commit}`);
|
|
40
|
-
});
|
|
41
|
-
console.log('\n If you create a branch from this state, these commits will be included in PR body.');
|
|
42
|
-
console.log(' Please push commits first:');
|
|
43
|
-
console.log(' git push');
|
|
44
|
-
console.log('\n Then re-run this command.');
|
|
45
|
-
process.exit(1);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
console.log('✓ No unpushed commits on current branch');
|
|
49
|
-
}
|
|
50
33
|
// Step 2: Get issue details
|
|
51
34
|
const details = await inputHandler.promptIssueDetails(repo);
|
|
52
35
|
// Step 3: Select GitHub project (optional)
|
|
@@ -30,23 +30,6 @@ async function createSubIssue() {
|
|
|
30
30
|
console.log('📦 Fetching repositories...');
|
|
31
31
|
const repo = await inputHandler.selectRepository();
|
|
32
32
|
githubClient.repo = repo;
|
|
33
|
-
// Check for unpushed commits on current branch
|
|
34
|
-
const unpushedCheck = (0, branch_utils_1.checkUnpushedCommitsOnCurrentBranch)();
|
|
35
|
-
if (unpushedCheck.hasUnpushed) {
|
|
36
|
-
console.log('\n⚠️ Warning: There are unpushed commits on the current branch.');
|
|
37
|
-
console.log(` Found ${unpushedCheck.count} unpushed commit(s):`);
|
|
38
|
-
unpushedCheck.commits.forEach(commit => {
|
|
39
|
-
console.log(` - ${commit}`);
|
|
40
|
-
});
|
|
41
|
-
console.log('\n If you create a branch from this state, these commits will be included in PR body.');
|
|
42
|
-
console.log(' Please push commits first:');
|
|
43
|
-
console.log(' git push');
|
|
44
|
-
console.log('\n Then re-run this command.');
|
|
45
|
-
process.exit(1);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
console.log('✓ No unpushed commits on current branch');
|
|
49
|
-
}
|
|
50
33
|
// Step 2: Select parent issue
|
|
51
34
|
console.log('\n📋 Fetching issues...');
|
|
52
35
|
const parentIssueNumber = await inputHandler.selectParentIssue(repo);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linear-github-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "CLI tool for creating GitHub issues with Linear integration",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc && chmod +x dist/cli.js dist/lgcmf.js",
|
|
13
|
-
"dev": "tsx cli.ts",
|
|
13
|
+
"dev": "tsx src/cli.ts",
|
|
14
14
|
"prepublishOnly": "npm run build"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|