(CommandList children: [ (C {(set)} {(-e)}) (AndOr children: [ (SimpleCommand words: [{(jq)} {(--version)}] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[42]) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[45]) ] ) (BraceGroup children: [ (C {(echo)} {(DQ ('could not find jq (JSON command line processor), is it installed?'))}) (C {(exit)} {(255)}) ] spids: [50] ) ] op_id: Op_DPipe ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-z)} {(DQ (${ VSub_Name RANGE))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:LATEST_TAG) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(git)} {(describe)} {(--abbrev) (Lit_Other '=') (0)})] ) left_token: <Left_CommandSub '$('> spids: [86 94] ) } spids: [85] ) ] spids: [85] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:RANGE) op: Equal rhs: {(DQ (${ VSub_Name LATEST_TAG) (..origin/master))} spids: [97] ) ] spids: [97] ) ] spids: [-1 82] ) ] spids: [-1 105] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ (${ VSub_Name GITHUB_AUTH))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GITHUB_AUTH) op: Equal rhs: {(DQ ('-u ') (${ VSub_Name GITHUB_AUTH))} spids: [128] ) ] spids: [128] ) ] spids: [-1 125] ) ] spids: [-1 136] ) (ForEach iter_name: pr iter_words: [ { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(git)} {(log)} {(--pretty) (Lit_Other '=') (Lit_Other '%') (s)} {(--first-parent)} {(DQ (${ VSub_Name RANGE))} ) (C {(egrep)} {(-o)} {(SQ <'#\\w+'>)}) (C {(tr)} {(-d)} {(SQ <'#'>)}) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [145 182] ) } ] do_arg_iter: False body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:body) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(curl)} {(-s)} {(DQ (${ VSub_Name GITHUB_AUTH))} {(https) (Lit_Other ':') (//api.github.com/repos/rkt/rkt/pulls/) (DQ (${ VSub_Name pr)) } ) (C {(jq)} {(-r)} {(SQ <'{title: .title, body: .body}'>)}) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [189 220] ) } spids: [188] ) ] spids: [188] ) (C {(echo)} {(DQ (-))} { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(DQ (${ VSub_Name body))}) (C {(jq)} {(-r)} {(.title)}) (C {(sed)} {(SQ <'s/\\.$//g'>)}) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [233 257] ) ) } {(DQ ('([#') (${ VSub_Name pr) ('](https://github.com/rkt/rkt/pull/') ($ VSub_Name '$pr') (')).'))} { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(DQ (${ VSub_Name body))}) (C {(jq)} {(-r)} {(.body)}) (C {(awk)} {(-v)} {(Lit_VarLike 'RS=') (SQ <'\\r\\n\\r\\n'>)} {(Lit_VarLike 'NR=') (Lit_Other '=') (1)} ) (C {(tr)} {(-d)} {(SQ <'\\r'>)}) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [275 316] ) ) } ) ] spids: [185 319] ) spids: [144 183] ) ] )