diff --git a/README.md b/README.md index 3930830..d11d35b 100644 --- a/README.md +++ b/README.md @@ -183,9 +183,28 @@ linearis usage linearis issues list -l 5 | jq '.[] | .identifier + ": " + .title' ``` +## About This Fork + +This is a fork of [czottmann/linearis](https://github.com/czottmann/linearis) that adds **due date support** to issue responses. The original linearis CLI does not include the `dueDate` field when fetching issues, which is essential for tracking deadlines. + +### Changes in this fork: +- Added `dueDate` field to all issue queries and responses +- Issues with due dates now include a `dueDate` field (ISO 8601 date format, e.g., "2026-01-18") + ## Installation -### npm (recommended) +### From this fork (recommended) + +```bash +# Clone and build +git clone --branch add-due-date https://github.com/Hallicopter/linearis.git +cd linearis +npm install +npm run build +sudo npm link +``` + +### From original npm package (without dueDate support) ```bash npm install -g linearis diff --git a/package-lock.json b/package-lock.json index 8ea92ee..02aef51 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "linearis", - "version": "2025.11.3", + "version": "2025.12.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "linearis", - "version": "2025.11.3", + "version": "2025.12.3", "license": "MIT", "dependencies": { "@linear/sdk": "^58.1.0", @@ -970,7 +970,6 @@ "integrity": "sha512-LPM2G3Syo1GLzXLGJAKdqoU35XvrWzGJ21/7sgZTUpbkBaOasTj8tjwn6w+hCkqaa1TfJ/w67rJSwYItlJ2mYw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~6.21.0" } @@ -1112,7 +1111,6 @@ "integrity": "sha512-izzd2zmnk8Nl5ECYkW27328RbQ1nKvkm6Bb5DAaz1Gk59EbLkiCMa6OLT0NoaAYTjOFS6N+SMYW1nh4/9ljPiw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@vitest/utils": "2.1.9", "fflate": "^0.8.2", @@ -1492,7 +1490,6 @@ "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.10.1.tgz", "integrity": "sha512-BL/Xd/T9baO6NFzoMpiMD7YUZ62R6viR5tp/MULVEnbYJXZA//kRNW7J0j1w/wXArgL0sCxhDfK5dczSKn3+cg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 10.x" } @@ -1809,7 +1806,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -2255,7 +2251,6 @@ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", @@ -2769,7 +2764,6 @@ "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@vitest/expect": "2.1.9", "@vitest/mocker": "2.1.9", diff --git a/src/queries/common.ts b/src/queries/common.ts index 97ab002..3c3b921 100644 --- a/src/queries/common.ts +++ b/src/queries/common.ts @@ -18,6 +18,7 @@ export const ISSUE_CORE_FIELDS = ` branchName priority estimate + dueDate createdAt updatedAt `; diff --git a/src/utils/graphql-issues-service.ts b/src/utils/graphql-issues-service.ts index 6a5e1fe..d15e78f 100644 --- a/src/utils/graphql-issues-service.ts +++ b/src/utils/graphql-issues-service.ts @@ -861,6 +861,7 @@ export class GraphQLIssuesService { : undefined, priority: issue.priority, estimate: issue.estimate || undefined, + dueDate: issue.dueDate || undefined, labels: issue.labels.nodes.map((label: any) => ({ id: label.id, name: label.name, diff --git a/src/utils/linear-types.d.ts b/src/utils/linear-types.d.ts index ec24d51..2c439d3 100644 --- a/src/utils/linear-types.d.ts +++ b/src/utils/linear-types.d.ts @@ -38,6 +38,7 @@ export interface LinearIssue { }; priority: number; estimate?: number; + dueDate?: string; labels: Array<{ id: string; name: string;