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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
((comment) @injection.content
 (#set! injection.language "comment"))

; https://woodpecker-ci.org/docs/usage/workflow-syntax#commands
; e.g.
; ```
; steps:
;   - name: backend
;     image: golang
;     commands:
;       - go build
;       - go test
; ```
(block_mapping_pair
  key: (flow_node) @_key (#eq? @_key "commands")
  value: (block_node
           (block_sequence
             (block_sequence_item
                (flow_node
                  (plain_scalar
                    (string_scalar) @injection.content))
                (#set! injection.language "bash")))))

(block_mapping_pair
  key: (flow_node) @_key (#any-of? @_key "commands")
  value: (block_node
           (block_sequence
             (block_sequence_item
               (block_node
                  (block_scalar) @injection.content
                  (#set! injection.language "bash"))))))

; https://woodpecker-ci.org/docs/usage/workflow-syntax#entrypoint
; e.g.
; ```
; job1:
;   services:
;     entrypoint: ["/usr/local/bin/docker-entrypoint.sh", "-c", 'max_connections=100']
; ```
(block_mapping_pair
  key: (flow_node) @_key (#any-of? @_key "entrypoint")
  value: (flow_node
           (flow_sequence
             (flow_node
               [
                 (double_quote_scalar)
                 (single_quote_scalar)
               ] @injection.content)))
  (#set! injection.language "bash"))
>139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
{
  "nodes": {
    "crane": {
      "flake": false,
      "locked": {
        "lastModified": 1654444508,
        "narHash": "sha256-4OBvQ4V7jyt7afs6iKUvRzJ1u/9eYnKzVQbeQdiamuY=",
        "owner": "ipetkov",
        "repo": "crane",
        "rev": "db5482bf225acc3160899124a1df5a617cfa27b5",
        "type": "github"
      },
      "original": {
        "owner": "ipetkov",
        "repo": "crane",
        "type": "github"
      }
    },
    "devshell": {
      "flake": false,
      "locked": {
        "lastModified": 1655976588,
        "narHash": "sha256-VreHyH6ITkf/1EX/8h15UqhddJnUleb0HgbC3gMkAEQ=",
        "owner": "numtide",
        "repo": "devshell",
        "rev": "899ca4629020592a13a46783587f6e674179d1db",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "devshell",
        "type": "github"
      }
    },
    "dream2nix": {
      "inputs": {
        "alejandra": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "crane": "crane",
        "devshell": [
          "nixCargoIntegration",
          "devshell"
        ],
        "flake-utils-pre-commit": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "gomod2nix": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "mach-nix": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "nixpkgs": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "node2nix": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "poetry2nix": [
          "nixCargoIntegration",
          "nixpkgs"
        ],
        "pre-commit-hooks": [
          "nixCargoIntegration",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1655975833,
        "narHash": "sha256-g8sdfuglIZ24oWVbntVzniNTJW+Z3n9DNL9w9Tt+UCE=",
        "owner": "nix-community",
        "repo": "dream2nix",
        "rev": "4e75e665ec3a1cddae5266bed0dd72fce0b74a23",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "dream2nix",
        "type": "github"
      }
    },
    "flake-utils": {
      "locked": {
        "lastModified": 1637014545,
        "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "nixCargoIntegration": {
      "inputs": {
        "devshell": "devshell",
        "dream2nix": "dream2nix",
        "nixpkgs": [
          "nixpkgs"
        ],
        "rust-overlay": [
          "rust-overlay"
        ]
      },
      "locked": {
        "lastModified": 1656453541,
        "narHash": "sha256-ZCPVnS6zJOZJvIlwU3rKR8MBVm6A3F4/0mA7G1lQ3D0=",
        "owner": "yusdacra",
        "repo": "nix-cargo-integration",
        "rev": "9eb74345b30cd2e536d9dac9d4435d3c475605c7",
        "type": "github"
      },
      "original": {
        "owner": "yusdacra",
        "repo": "nix-cargo-integration",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1655624069,
        "narHash": "sha256-7g1zwTdp35GMTERnSzZMWJ7PG3QdDE8VOX3WsnOkAtM=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "0d68d7c857fe301d49cdcd56130e0beea4ecd5aa",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixCargoIntegration": "nixCargoIntegration",
        "nixpkgs": "nixpkgs",
        "rust-overlay": "rust-overlay"
      }
    },
    "rust-overlay": {
      "inputs": {
        "flake-utils": "flake-utils",
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1655779671,
        "narHash": "sha256-6feeiGa6fb7ZPVHR71uswkmN1701TAJpwYQA8QffmRk=",
        "owner": "oxalica",
        "repo": "rust-overlay",
        "rev": "8159585609a772b041cce6019d5c21d240709244",
        "type": "github"
      },
      "original": {
        "owner": "oxalica",
        "repo": "rust-overlay",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}