Debian Codegraph @

runtime/queries/woodpecker-ci/injections.scm

raw symbols SCIP
1 ((comment) @injection.content
2 (#set! injection.language "comment"))
3
4 ; https://woodpecker-ci.org/docs/usage/workflow-syntax#commands
5 ; e.g.
6 ; ```
7 ; steps:
8 ; - name: backend
9 ; image: golang
10 ; commands:
11 ; - go build
12 ; - go test
13 ; ```
14 (block_mapping_pair
15 key: (flow_node) @_key (#eq? @_key "commands")
16 value: (block_node
17 (block_sequence
18 (block_sequence_item
19 (flow_node
20 (plain_scalar
21 (string_scalar) @injection.content))
22 (#set! injection.language "bash")))))
23
24 (block_mapping_pair
25 key: (flow_node) @_key (#any-of? @_key "commands")
26 value: (block_node
27 (block_sequence
28 (block_sequence_item
29 (block_node
30 (block_scalar) @injection.content
31 (#set! injection.language "bash"))))))
32
33 ; https://woodpecker-ci.org/docs/usage/workflow-syntax#entrypoint
34 ; e.g.
35 ; ```
36 ; job1:
37 ; services:
38 ; entrypoint: ["/usr/local/bin/docker-entrypoint.sh", "-c", 'max_connections=100']
39 ; ```
40 (block_mapping_pair
41 key: (flow_node) @_key (#any-of? @_key "entrypoint")
42 value: (flow_node
43 (flow_sequence
44 (flow_node
45 [
46 (double_quote_scalar)
47 (single_quote_scalar)
48 ] @injection.content)))
49 (#set! injection.language "bash"))