Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; select jobs
(block_mapping
  (block_mapping_pair
    value: (block_node
             (block_mapping
               (block_mapping_pair
                 key: (flow_node) @_key (#eq? @_key "stage"))))) @definition.struct)

; select defined variables under `variables:`
(block_mapping
  (block_mapping_pair
    key: (flow_node) @_key (#eq? @_key "variables")
    value: (block_node
             (block_mapping
               (block_mapping_pair
                 key: (flow_node) @name
                 value: (_) @definition.constant)))))