Skip to content

Commit 3cc78c4

Browse files
committed
fix: correct Linear API key settings URL
The settings page for API keys moved from /settings/api to /settings/account/security. Update the error message shown when LINEAR_API_KEY is unset, its test assertion, and the project readme. Fixes CRY-52.
1 parent 2987c9f commit 3cc78c4

3 files changed

Lines changed: 3 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ 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+
IO.puts(:stderr, "Set it to your Linear API key - see https://linear.app/settings/account/security")
315315
IO.puts(:stderr, "** Missing configuration, cannot continue **")
316316
maybe_print_backtrace(debug)
317317
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)