(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:curlhdr) op: Equal rhs: {(DQ ("Accept: application/vnd.travis-ci.2+json"))} spids: [7] ) ] spids: [7] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:endpoint) op: Equal rhs: {(DQ ("https://api.travis-ci.org/repos/") ($ VSub_Name "$TRAVIS_REPO_SLUG"))} spids: [12] ) ] spids: [12] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$TRAVIS_PULL_REQUEST"))} {(KW_Bang "!") (Lit_Other "=")} {(DQ (false))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:newestbuildforthisPR) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(curl)} {(-H)} {(DQ ($ VSub_Name "$curlhdr"))} {($ VSub_Name "$endpoint") (/builds) (Lit_Other "?") (Lit_VarLike "event_type=") (pull_request) } ) (C {(jq)} { (DQ (".builds | map(select(.pull_request_number == ") ($ VSub_Name "$TRAVIS_PULL_REQUEST") ("))[0].number") ) } ) ] negated: False ) ] ) left_token: <Left_CommandSub "$("> spids: [44 70] ) } spids: [43] ) ] spids: [43] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {($ VSub_Name "$newestbuildforthisPR")} {(KW_Bang "!") (Lit_Other "=")} {(null)} {(-a)} {($ VSub_Name "$newestbuildforthisPR")} {(KW_Bang "!") (Lit_Other "=")} {(EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ($ VSub_Name "$TRAVIS_BUILD_NUMBER") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) } {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (C {(echo)} {(DQ ("There are newer queued builds for this pull request, failing early."))} ) (C {(exit)} {(1)}) ] spids: [-1 98] ) ] spids: [-1 113] ) ] spids: [-1 40] ) ] else_action: [ (Case to_match: {($ VSub_Name "$TRAVIS_BRANCH")} arms: [ (case_arm pat_list: [{(master)} {(release) (Lit_Other "*")}] spids: [129 135 138 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ($ VSub_Name "$TRAVIS_BUILD_NUMBER") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) } {(KW_Bang "!") (Lit_Other "=")} { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(curl)} {(-H)} {(DQ ($ VSub_Name "$curlhdr"))} {($ VSub_Name "$endpoint") (/branches/) ($ VSub_Name "$TRAVIS_BRANCH") } ) (C {(jq)} {(DQ (.branch.number))}) ] negated: False ) ] ) left_token: <Left_CommandSub "$("> spids: [156 178] ) } {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (C {(echo)} {(DQ ("There are newer queued builds for this branch, failing early."))} ) (C {(exit)} {(1)}) ] spids: [-1 183] ) ] spids: [-1 198] ) ] spids: [141 142 201 -1] ) ] spids: [122 126 204] ) ] spids: [115 206] ) ] )