diff --git a/Readme.adoc b/Readme.adoc index 0cca243..263a56a 100644 --- a/Readme.adoc +++ b/Readme.adoc @@ -26,6 +26,8 @@ $ docker run -it --rm -e LINEAR_API_KEY=your-api-key ghcr.io/rubyists/linear-cli There is a {plc-url}[helper script] available to wrap this up for you. +NOTE: Git commands will require a passphrase for every operation if you are using an ssh key. + [source,sh] ---- $ curl -sL https://raw.githubusercontent.com/rubyists/linear-cli/main/oci/plc | sudo tee /usr/local/bin/lc diff --git a/lib/linear/cli/what_for.rb b/lib/linear/cli/what_for.rb index 9342f74..624c0e5 100644 --- a/lib/linear/cli/what_for.rb +++ b/lib/linear/cli/what_for.rb @@ -5,6 +5,9 @@ module Linear module CLI # Module for the _for methods module WhatFor + # TODO: Make this configurable + ALLOWED_PR_TYPES = 'bug|fix|sec(urity)|feat(ure)|chore|refactor|test|docs|style|ci|perf' + def editor_for(prefix) file = Tempfile.open(prefix, Rubyists::Linear.tmpdir) TTY::Editor.open(file.path) diff --git a/lib/linear/commands/issue.rb b/lib/linear/commands/issue.rb index f430864..2e59de1 100644 --- a/lib/linear/commands/issue.rb +++ b/lib/linear/commands/issue.rb @@ -17,7 +17,6 @@ module Issue include CLI::SubCommands DESCRIPTION = 'Manage issues' - ALLOWED_PR_TYPES = 'bug|fix|sec(urity)|feat(ure)|chore|refactor|test|docs|style|ci|perf' # Aliases for Issue commands ALIASES = {