Module: Linear::Commands::MyIssues
- Extended by:
- MyIssues
- Included in:
- Linear::Commands, MyIssues
- Defined in:
- lib/linear/commands/my_issues.rb
Instance Method Summary collapse
Instance Method Details
#my_issues(client: Client.new) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/linear/commands/my_issues.rb', line 6 def my_issues(client: Client.new) result = client.query(Queries::MY_ISSUES) issues = result.dig("data", "viewer", "assignedIssues", "nodes") || [] if issues.empty? puts "No issues assigned to you" else Formatters.display_issue_list(issues) end end |