From 3cc78c4d9903da948453ad0099ccf5ca1fced026 Mon Sep 17 00:00:00 2001 From: "Tj (bougyman) Vanderpoel" Date: Sun, 16 Aug 2026 15:04:51 -0400 Subject: [PATCH 1/2] 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. --- Readme.adoc | 2 +- app/lib/linear_cli/cli.ex | 2 +- app/test/linear_cli/cli/missing_api_key_test.exs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.adoc b/Readme.adoc index a0943d4..eed3466 100644 --- a/Readme.adoc +++ b/Readme.adoc @@ -129,7 +129,7 @@ $ ./burrito_out/lc_ --version === Configuration You must set the `LINEAR_API_KEY` environment variable to your Linear API key. -You can find your API key in your https://linear.app/settings/api[Linear Settings]. +You can find your API key in your https://linear.app/settings/account/security[Linear Settings]. === Commands diff --git a/app/lib/linear_cli/cli.ex b/app/lib/linear_cli/cli.ex index 7228f43..6e6c9ce 100644 --- a/app/lib/linear_cli/cli.ex +++ b/app/lib/linear_cli/cli.ex @@ -311,7 +311,7 @@ defmodule LinearCli.CLI do halt ) do IO.puts(:stderr, "LINEAR_API_KEY is not set.") - IO.puts(:stderr, "Set it to your Linear API key - see https://linear.app/settings/api") + IO.puts(:stderr, "Set it to your Linear API key - see https://linear.app/settings/account/security") IO.puts(:stderr, "** Missing configuration, cannot continue **") maybe_print_backtrace(debug) halt.(78) diff --git a/app/test/linear_cli/cli/missing_api_key_test.exs b/app/test/linear_cli/cli/missing_api_key_test.exs index 4526c1f..af3bdcd 100644 --- a/app/test/linear_cli/cli/missing_api_key_test.exs +++ b/app/test/linear_cli/cli/missing_api_key_test.exs @@ -16,7 +16,7 @@ defmodule LinearCli.CLI.MissingApiKeyTest do assert_received {:halted, 78} assert output =~ "LINEAR_API_KEY is not set." - assert output =~ "https://linear.app/settings/api" + assert output =~ "https://linear.app/settings/account/security" refute output =~ "What the heck is this?" refute output =~ "Ash.Error" end From b71eca1314142175b18f9884cc6c91e2e90f8dca Mon Sep 17 00:00:00 2001 From: "Tj (bougyman) Vanderpoel" Date: Sun, 16 Aug 2026 15:14:47 -0400 Subject: [PATCH 2/2] style: run mix format on cli.ex after URL length increase The corrected Linear API key URL is longer than the old one, pushing the IO.puts call past the formatter's line-length limit. Run mix format to reformat the call across multiple lines. --- app/lib/linear_cli/cli.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/lib/linear_cli/cli.ex b/app/lib/linear_cli/cli.ex index 6e6c9ce..d2dc190 100644 --- a/app/lib/linear_cli/cli.ex +++ b/app/lib/linear_cli/cli.ex @@ -311,7 +311,12 @@ defmodule LinearCli.CLI do halt ) do IO.puts(:stderr, "LINEAR_API_KEY is not set.") - IO.puts(:stderr, "Set it to your Linear API key - see https://linear.app/settings/account/security") + + IO.puts( + :stderr, + "Set it to your Linear API key - see https://linear.app/settings/account/security" + ) + IO.puts(:stderr, "** Missing configuration, cannot continue **") maybe_print_backtrace(debug) halt.(78)