Skip to content

Commit 992f05a

Browse files
committed
fix: add type annotations and CI workflow for type checking
- Add explicit type annotations to team-list.ts and project-list.ts to fix implicit any errors - Add CI workflow (.github/workflows/ci.yml) that runs type check, format, lint, and tests on PRs - Update justfile to use 'deno check src/main.ts' instead of '--all' to avoid npm dependency type errors
1 parent 86bdd37 commit 992f05a

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: denoland/setup-deno@v2
15+
with:
16+
deno-version: v2.x
17+
- name: Generate GraphQL code
18+
run: deno task codegen
19+
- name: Type check
20+
run: deno check src/main.ts
21+
- name: Format check
22+
run: deno fmt --check
23+
- name: Lint
24+
run: deno lint
25+
- name: Test
26+
run: deno task test

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
## [Unreleased]
44

5+
## [1.9.0] - 2026-01-29
6+
57
### Fixed
68

79
- Fix `--assignee self` to correctly resolve to current user ([#104](https://github.com/schpet/linear-cli/pull/104); thanks @JustTrott)
10+
- add pagination to `project list` command ([#109](https://github.com/schpet/linear-cli/pull/109); thanks @andrew-kline)
11+
- add pagination to `team list` command ([#107](https://github.com/schpet/linear-cli/pull/107); thanks @andrew-kline)
12+
- error when `--workspace` flag specifies unknown workspace
13+
- `--sort` flag now works correctly after interactive prompts ([#96](https://github.com/schpet/linear-cli/pull/96); thanks @paymog)
814

915
### Added
1016

@@ -14,6 +20,7 @@
1420
- `linear auth list` to show configured workspaces with org/user info
1521
- `linear auth default` to set the default workspace
1622
- global `-w, --workspace` flag to target a specific workspace by slug
23+
- `--project` filter for `issue list` command ([#94](https://github.com/schpet/linear-cli/pull/94); thanks @paymog)
1724

1825
## [1.8.1] - 2026-01-23
1926

@@ -353,7 +360,8 @@
353360
- adds a -t, --title flag to the `issue pr` command, allowing you to provide a PR title that is different than linear's issue title
354361
- allows linear issue identifiers to be passed in as arguments to the issue commands as an alternative to parsing the branch name, e.g. `linear issue show ABC-123`
355362

356-
[Unreleased]: https://github.com/schpet/linear-cli/compare/v1.8.1...HEAD
363+
[Unreleased]: https://github.com/schpet/linear-cli/compare/v1.9.0...HEAD
364+
[1.9.0]: https://github.com/schpet/linear-cli/compare/v1.8.1...v1.9.0
357365
[1.8.1]: https://github.com/schpet/linear-cli/compare/v1.8.0...v1.8.1
358366
[1.8.0]: https://github.com/schpet/linear-cli/compare/v1.7.0...v1.8.0
359367
[1.7.0]: https://github.com/schpet/linear-cli/compare/v1.6.0...v1.7.0

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dev *args:
33

44
# tags the newest release in the changelog
55
tag:
6-
deno check --all
6+
deno check src/main.ts
77
deno fmt --check
88
deno lint
99
deno task test

src/commands/project/project-list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ export const listCommand = new Command()
142142

143143
spinner?.stop()
144144

145-
let projects = allProjects
145+
type Project = GetProjectsQuery["projects"]["nodes"][number]
146+
let projects: Project[] = allProjects
146147

147148
if (projects.length === 0) {
148149
console.log("No projects found.")

src/commands/team/team-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const listCommand = new Command()
6464
const client = getGraphQLClient()
6565

6666
// Fetch all teams with pagination
67-
const allTeams = []
67+
const allTeams: GetTeamsQuery["teams"]["nodes"] = []
6868
let hasNextPage = true
6969
let after: string | null | undefined = undefined
7070

0 commit comments

Comments
 (0)