Commit Graph

83 Commits

Author SHA1 Message Date
Peter Schilling a3e2960b7f chore: Release linear-cli version 2.0.0 2026-04-03 11:41:56 -07:00
Peter Schilling 4113c4d4fc test: make issue list output deterministic 2026-04-01 14:59:12 +00:00
Peter Schilling 4007ac76cb chore: Release linear-cli version 1.11.1 2026-03-06 22:13:11 +00:00
Peter Schilling 27c083b8b2 chore: Release linear-cli version 1.11.0 2026-03-05 05:22:44 +00:00
Dan Wager 1f6b6ac2e3 fix: move build-setup.yml out of workflows dir 2026-03-04 20:25:14 -08:00
Peter Schilling 3619837c5e chore: Release linear-cli version 1.10.0 2026-02-17 04:56:09 +00:00
Peter Schilling 17ddb7802c chore: Release linear-cli version 1.9.1 2026-01-29 17:07:47 +00:00
Peter Schilling af20b0f310 use --allow-all instead of fine grained permissions
this thing runs exec loosely so i don't think they afford me mcuh, and they frequently cause problems
2026-01-29 16:33:18 +00:00
Peter Schilling 65d07f329f chore: Release linear-cli version 1.9.0 2026-01-29 05:55:40 +00:00
Peter Schilling 1b4135ba59 feat: add file attachment support for issues and comments
- Add `issue attach` command to attach files to issues
- Add `--attach` flag on `issue comment add`
- Show attachments section in `issue view` with auto-download
- Add `attachment_dir` and `auto_download_attachments` config options
- Add network permission for storage.googleapis.com (upload destination)
2026-01-27 12:51:59 -08:00
Peter Schilling 2a49427f4f chore: Release linear-cli version 1.8.1 2026-01-23 10:57:00 -08:00
Peter Schilling 88ecf1bd51 fix: sync deno permissions across config files
- Add public.linear.app to --allow-net in deno.json and dist-workspace.toml
- Add uploads.linear.app to dist-workspace.toml (was missing)
- Add XDG_CONFIG_HOME, HOME, APPDATA to dist-workspace.toml --allow-env
- Add --allow-sys=hostname to dist-workspace.toml
- Add permissions section to CLAUDE.md
- Add docs/deno-permissions.md documenting all permission locations
2026-01-23 10:54:38 -08:00
Peter Schilling 8a4688c3b9 chore: Release linear-cli version 1.8.0 2026-01-22 10:58:20 -08:00
Peter Schilling 4d3a4bb2f1 feat: add auto-generated skill documentation from CLI help output 2026-01-22 10:56:33 -08:00
Sam Gbafa cd45a8a6aa Add initiative, label, and bulk operation support (#95)
This PR adds several major features to linear-cli:

- **Initiative management**: Full CRUD support for initiatives including
list, view, create, archive, unarchive, update, and delete commands
- **Initiative-project linking**: Commands to add and remove projects
from initiatives
- **Label management**: List, create, and delete commands for labels
with team filtering
- **Project creation**: New `project create` command with interactive
mode and initiative linking
- **Team deletion**: New `team delete` command with confirmation
- **Bulk operations**: New utility supporting bulk operations across
commands (issue delete now supports multiple IDs)

## New Commands

### Initiatives
- `linear initiative list` - List all initiatives with filtering options
- `linear initiative view <id>` - View initiative details including
linked projects
- `linear initiative create` - Create new initiative (interactive or via
flags)
- `linear initiative archive <id>` - Archive an initiative
- `linear initiative unarchive <id>` - Unarchive an initiative  
- `linear initiative update <id>` - Update initiative properties
- `linear initiative delete <id>` - Delete an initiative (with
confirmation)
- `linear initiative add-project` - Link a project to an initiative
- `linear initiative remove-project` - Remove project from initiative

### Labels
- `linear label list` - List labels with optional team filter
- `linear label create` - Create a new label
- `linear label delete <id>` - Delete a label

### Projects
- `linear project create` - Create a new project with team, lead, dates,
status, and optional initiative linking

### Teams
- `linear team delete <id>` - Delete a team (with confirmation)
2026-01-21 08:45:54 -08:00
Kirt Lillywhite 1268b667fb feat: support loading config from user home directory
Add support for loading `.linear.toml` from user's home directory as a
fallback when no project-level config exists:
- Unix: `~/.config/linear/linear.toml` or `$XDG_CONFIG_HOME/linear/linear.toml`
- Windows: `%APPDATA%\linear\linear.toml`

Config precedence (highest to lowest):
1. CLI flags
2. Environment variables
3. Project config (`.linear.toml` in cwd or repo root)
4. User home config

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 13:28:32 -08:00
Peter Schilling ae523e550c chore: Release linear-cli version 1.7.0 2026-01-09 12:44:54 -08:00
Peter Schilling 80dc1be2ff chore: Release linear-cli version 1.6.0 2026-01-05 22:35:19 -08:00
Peter Schilling 86a580948c chore: Release linear-cli version 1.5.0 2025-12-16 07:50:11 -08:00
Peter Schilling 60ed8d7e0e chore: Release linear-cli version 1.4.0 2025-12-08 22:11:11 -08:00
Peter Schilling 80a81bc08d Use linear schema command instead of npm package
Replace the get-graphql-schema npm package with the built-in
'linear schema' command, using the -o flag to write output to file
instead of stdout redirection.

Claude-session-id: c951003d-76bb-446c-9c38-d448f2f768af
2025-12-08 21:55:15 -08:00
Peter Schilling cf0d28a720 Add OSC-8 hyperlink support for images in comments
Extend hyperlink support to work consistently for both issue descriptions
and comments by using charmd markdown rendering with OSC-8 extensions.

- Use renderMarkdown with extensions for comment body rendering
- Remove formatWrappedText function, replaced by markdown rendering
- Pass extensions array through captureCommentsForTerminal function
- Apply proper indentation to rendered reply comments

Claude-session-id: 49101792-03cc-423f-8162-4e8fd125d1b4
2025-12-03 22:51:49 -08:00
Peter Schilling b47f95e7fb Add image download functionality to issue view
Implement local image caching for issue view command to avoid
exposing authenticated Linear URLs. Images are downloaded to a
temporary directory and cached for reuse.

- Add image download and caching system
- Update deno.json permissions for temporary directories and
  uploads.linear.app domain access
- Add dependencies: remark, unified, mdast, valibot, sanitize-filename
- Add LINEAR_DOWNLOAD_IMAGES env var and download_images config option
  (enabled by default, disable with --no-download flag)

Claude-session-id: 626af003-386f-486b-8357-db352b0b5766
2025-12-03 22:45:28 -08:00
Peter Schilling 772fd2688f chore: Release linear-cli version 1.3.1 2025-12-02 22:56:19 -08:00
Peter Schilling 1867c1315c chore: Release linear-cli version 1.3.0 2025-12-01 21:23:36 -08:00
Peter Schilling 3f23b98659 chore: Release linear-cli version 1.2.1 2025-11-10 23:58:28 -08:00
Peter Schilling c4078bd7b5 chore: Release linear-cli version 1.2.0 2025-10-21 12:00:48 -07:00
Peter Schilling 4bb3bef0c7 change formatting rules: no prose wrap, no semi colons 2025-09-02 22:13:34 -07:00
Peter Schilling 094dbb90c5 chore: Release linear-cli version 1.1.1 2025-09-02 21:50:40 -07:00
Peter Schilling b4979bc4cc chore: Release linear-cli version 1.1.0 2025-09-02 21:28:02 -07:00
Peter Schilling 31e9ae9914 chore: Release linear-cli version 1.0.1 2025-08-26 09:22:31 -07:00
Peter Schilling e76b734ed8 setup pre-commit hooks 2025-08-21 08:56:58 -07:00
Peter Schilling de7fd9182e chore: Release linear-cli version 1.0.0 2025-08-20 13:10:01 -07:00
Peter Schilling 592000f70a Various improvements (#51)
**Fixed:**
- state column is now dynamically sized with max 20 chars and
auto-truncation

**Changed:**
- linear issue list now sorts by workflow state first
- issue pr create no longer opens browser by default, added --web flag
- removed 'about' prefix from relative timestamps

**Added:**
- automatic paging for issue view command with --no-pager flag and pager
- pager support for issue list command with --no-pager option
2025-08-18 21:52:46 -07:00
Peter Schilling c125a2e805 test issue-create 2025-08-14 19:51:32 -07:00
Peter Schilling 3e3c0f3df5 attempt to fix publishign to jsr 2025-08-14 07:21:29 -07:00
Peter Schilling 93251900ec Organize code (#46) 2025-08-14 06:38:40 -07:00
Peter Schilling 6862937014 CLI-13 Allow listing issues you are not assigned to (#39)
https://linear.app/schpet/issue/CLI-13/allow-listing-issues-you-are-not-assigned-to
2025-08-12 21:48:45 -07:00
Peter Schilling df884d2d18 chore: Release linear-cli version 0.6.4 2025-08-12 14:18:58 -07:00
Peter Schilling a77c87f454 chore: Release linear-cli version 0.6.3 2025-08-12 14:07:50 -07:00
Peter Schilling 9921f514d8 chore: Release linear-cli version 0.6.2 2025-08-12 14:00:34 -07:00
Peter Schilling 5c42b886f6 chore: Release linear-cli version 0.6.1 2025-08-12 13:41:21 -07:00
Peter Schilling d4b7ee0b1d chore: Release linear-cli version 0.6.0 2025-08-12 13:27:06 -07:00
Peter Schilling b530f4d339 Allow editing description in your editor 2025-08-12 13:05:57 -07:00
Peter Schilling ebc78166bc Fix jsr publishing 2025-08-12 09:04:52 -07:00
Peter Schilling 2ea8138cf4 feat: Use graphql codegen to ensure linear api data has types (#34)
CLI-5
2025-08-11 22:48:29 -07:00
Marc-Antoine Parent 947038f71d More specific security permissions in compile task (#31)
Restrict net access to linear api
Restrict run access to gh, git
Restrict env access to linear and variables used by gh and git.

---------

Co-authored-by: Peter Schilling <git@schpet.com>
2025-08-05 09:02:26 -07:00
Peter Schilling b8828da219 Handle long team ids, Improve error output (#29)
- improves error output to be pretty json
- handles longer team ids
- adds a script to update linear's graphql schema
- adds tests
2025-06-17 22:02:01 -07:00
Peter Schilling 7459003755 chore: Release linear-cli version 0.5.7 2025-05-22 07:40:39 -07:00
Peter Schilling e2b4ff5ca4 chore: Release linear-cli version 0.5.6 2025-05-22 07:27:26 -07:00