(command.CommandList
  children: [
    (C {<set>} {<-e>})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [{<jq>} {<--version>}]
          redirects: [
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          do_fork: T
        )
        (BraceGroup
          children: [
            (C {<echo>} {(DQ <'could not find jq (JSON command line processor), is it installed?'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<255>})
          ]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ (${ Id.VSub_Name RANGE))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:LATEST_TAG)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<git>} {<describe>} {<--abbrev> <Id.Lit_Equals '='> <0>})
                      )
                    }
                  spids: [85]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:RANGE)
                  op: assign_op.Equal
                  rhs: {(DQ (${ Id.VSub_Name LATEST_TAG) <'..origin/master'>)}
                  spids: [97]
                )
              ]
            )
          ]
          spids: [67 82]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-z>} 
                      {(DQ (${ Id.VSub_Name GITHUB_AUTH))} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:GITHUB_AUTH)
                  op: assign_op.Equal
                  rhs: {(DQ <'-u '> (${ Id.VSub_Name GITHUB_AUTH))}
                  spids: [128]
                )
              ]
            )
          ]
          spids: [108 125]
        )
      ]
    )
    (command.ForEach
      iter_name: pr
      iter_words: [
        {
          (command_sub
            left_token: <Id.Left_DollarParen '$('>
            child: 
              (command.Pipeline
                children: [
                  (C {<git>} {<log>} {<--pretty> <Id.Lit_Equals '='> <Id.Lit_Other '%'> <s>} 
                    {<--first-parent>} {(DQ (${ Id.VSub_Name RANGE))}
                  )
                  (C {<egrep>} {<-o>} {(SQ <'#\\w+'>)})
                  (C {<tr>} {<-d>} {(SQ <'#'>)})
                ]
                negated: F
              )
          )
        }
      ]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:body)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<curl>} {<-s>} {(DQ (${ Id.VSub_Name GITHUB_AUTH))} 
                                {<https> <Id.Lit_Colon ':'> <'//api.github.com/repos/rkt/rkt/pulls/'> 
                                  (DQ (${ Id.VSub_Name pr))
                                }
                              )
                              (C {<jq>} {<-r>} {(SQ <'{title: .title, body: .body}'>)})
                            ]
                            negated: F
                          )
                      )
                    }
                  spids: [188]
                )
              ]
            )
            (C {<echo>} {(DQ <->)} 
              {
                (DQ 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (command.Pipeline
                        children: [
                          (C {<echo>} {(DQ (${ Id.VSub_Name body))})
                          (C {<jq>} {<-r>} {<.title>})
                          (C {<sed>} {(SQ <'s/\\.$//g'>)})
                        ]
                        negated: F
                      )
                  )
                )
              } 
              {
                (DQ <'([#'> (${ Id.VSub_Name pr) <'](https://github.com/rkt/rkt/pull/'> 
                  ($ Id.VSub_DollarName '$pr') <')).'>
                )
              } 
              {
                (DQ 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: 
                      (command.Pipeline
                        children: [
                          (C {<echo>} {(DQ (${ Id.VSub_Name body))})
                          (C {<jq>} {<-r>} {<.body>})
                          (C {<awk>} {<-v>} {<Id.Lit_VarLike 'RS='> (SQ <'\\r\\n\\r\\n'>)} 
                            {<Id.Lit_VarLike 'NR='> <Id.Lit_Equals '='> <1>}
                          )
                          (C {<tr>} {<-d>} {(SQ <'\\r'>)})
                        ]
                        negated: F
                      )
                  )
                )
              }
            )
          ]
        )
    )
  ]
)