Skip to content

Commit 382e5cf

Browse files
authored
fix: correct Linear API key settings URL (#134)
## Summary - Fixes the URL shown in the `LINEAR_API_KEY is not set` error message: `https://linear.app/settings/api` → `https://linear.app/settings/account/security` - Updates the matching test assertion in `missing_api_key_test.exs` - Updates `Readme.adoc` setup instructions with the correct URL Linear moved API key management from `/settings/api` to **Settings > Account > Security & Access** (`/settings/account/security`). The old URL was sending users to a non-existent page. Closes CRY-52. ## Test plan - [ ] `mix test test/linear_cli/cli/missing_api_key_test.exs` passes (verified locally) - [ ] Full test suite: 248/254 pass (6 pre-existing `LinearCli.GitTest` failures unrelated to this change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 1466fff commit 382e5cf

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

Readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ $ ./burrito_out/lc_<target> --version
129129
=== Configuration
130130

131131
You must set the `LINEAR_API_KEY` environment variable to your Linear API key.
132-
You can find your API key in your https://linear.app/settings/api[Linear Settings].
132+
You can find your API key in your https://linear.app/settings/account/security[Linear Settings].
133133

134134
=== Commands
135135

app/lib/linear_cli/cli.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,12 @@ defmodule LinearCli.CLI do
311311
halt
312312
) do
313313
IO.puts(:stderr, "LINEAR_API_KEY is not set.")
314-
IO.puts(:stderr, "Set it to your Linear API key - see https://linear.app/settings/api")
314+
315+
IO.puts(
316+
:stderr,
317+
"Set it to your Linear API key - see https://linear.app/settings/account/security"
318+
)
319+
315320
IO.puts(:stderr, "** Missing configuration, cannot continue **")
316321
maybe_print_backtrace(debug)
317322
halt.(78)

app/test/linear_cli/cli/missing_api_key_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defmodule LinearCli.CLI.MissingApiKeyTest do
1616

1717
assert_received {:halted, 78}
1818
assert output =~ "LINEAR_API_KEY is not set."
19-
assert output =~ "https://linear.app/settings/api"
19+
assert output =~ "https://linear.app/settings/account/security"
2020
refute output =~ "What the heck is this?"
2121
refute output =~ "Ash.Error"
2222
end

0 commit comments

Comments
 (0)