feat: add --due-date flag to create and update#1
Open
muqsitnawaz wants to merge 1 commit intomainfrom
Open
Conversation
Linear's TimelessDate (YYYY-MM-DD). On update, 'none' clears the date. Validation uses datetime.date.fromisoformat (stdlib, no new deps).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
linear create --due-date YYYY-MM-DDsets the due date at creation time.linear update <id> --due-date YYYY-MM-DDsets it on existing issues;--due-date noneclears it.TimelessDate(date-only) field onIssueUpdateInput.dueDate/IssueCreateInput.dueDate.datetime.date.fromisoformat— stdlib only, zero new dependencies.Why
Linear's web UI and the official
@linear/cliboth expose due dates as a first-class field. linear-cli previously fetched and sorted bydueDatebut had no way to set one — so users had to fall through to GraphQL by hand. Closes that gap with two flags and one helper.Verified end-to-end against the Linear API
```
$ linear update RUSH-565 --due-date 2026-04-26
RUSH-565 -> due: 2026-04-26
$ linear update RUSH-565 --due-date none
RUSH-565 -> due: cleared
$ linear update RUSH-565 --due-date not-a-date
Invalid --due-date 'not-a-date'. Use YYYY-MM-DD (e.g. 2026-04-28) or 'none'.
$ linear create "TEST" --due-date 2026-12-31
Created RUSH-566: TEST [no cycle | Muqsit]
(verified dueDate=2026-12-31 via GraphQL, then deleted)
```
Test plan
dueDate(verified via GraphQL read-back)dueDatenoneclearsdueDate--due-datefor both subcommands