mirror of
https://github.com/schpet/linear-cli.git
synced 2026-09-14 14:26:50 +08:00
eb6f07499a
When no team can be determined, issue mine (and its list alias) now uses the same message as issue query — 'No default team configured and no team scope provided' — instead of the inaccurate 'Could not determine team key from directory name or team flag' (the team only ever comes from the --team flag, LINEAR_TEAM_ID, or team_id config; directory names are not consulted). The error now carries a suggestion: always offer --team <key>, and when run inside a git work tree, also point at linear config, which links the repository to a team by generating .linear.toml. Repo detection is a new best-effort isInsideGitRepo() helper: any git failure (not a repo, dubious ownership) counts as false so the optional hint can never turn the team error into a git crash. The same stale message remains in cycle-list, cycle-view, team-states, and team-members; those are deferred so they can adopt the helper in a follow-up.
3.4 KiB
3.4 KiB