Module: Linear::Commands::FetchIssue
- Extended by:
- FetchIssue
- Included in:
- Linear::Commands, FetchIssue
- Defined in:
- lib/linear/commands/fetch_issue.rb
Instance Method Summary collapse
Instance Method Details
#fetch_issue(issue_id, client: Client.new) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/linear/commands/fetch_issue.rb', line 6 def fetch_issue(issue_id, client: Client.new) result = client.query(Queries::ISSUE, { id: issue_id }) issue = result.dig("data", "issue") if issue Formatters.display_issue(issue) else puts "Issue not found: #{issue_id}" end end |