File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- linear-cli (0.7.1 )
4+ linear-cli (0.7.2 )
55 base64 (~> 0.2 )
66 dry-cli (~> 1.0 )
77 dry-cli-completion (~> 1.0 )
Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ class User
1818 email
1919 end
2020
21- def self . with_teams
21+ def self . base_fragment
2222 @with_teams = fragment ( 'UserWithTeams' , 'User' ) do
2323 ___ Base
2424 teams do
25- nodes { ___ Team :: Base }
25+ nodes { ___ Team . base_fragment }
2626 end
2727 end
2828 end
2929
30- def self . me ( teams : false )
31- fragment = teams ? with_teams : Base
30+ def self . me ( ** )
31+ fragment = base_fragment
3232 q = query do
3333 viewer do
3434 ___ fragment
@@ -48,7 +48,7 @@ def issue_query(first)
4848 query do
4949 user ( id :) do
5050 assignedIssues ( first :, filter : { completedAt : { null : true } } ) do
51- nodes { ___ Issue :: Base }
51+ nodes { ___ Issue . base_fragment }
5252 end
5353 end
5454 end
You can’t perform that action at this time.
0 commit comments