code.pablomurad.com

patchwork

Publishes the revisions of your pages as a feed, with notes and readable diffs, written in Go

internal/engine/testdata/cases/maturity-only/expected.json raw
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
{
  "steps": [
    {
      "file": "v1.md",
      "action": "baseline",
      "number": 1
    },
    {
      "file": "v2.md",
      "action": "silent"
    },
    {
      "file": "v3.md",
      "action": "published",
      "number": 2
    }
  ],
  "revisions": [
    {
      "number": 2,
      "note": "It bloomed.",
      "maturity": "bloom",
      "stats": {
        "words_added": 0,
        "words_removed": 0,
        "blocks_changed": 0
      },
      "meta_changes": [
        {
          "key": "maturity",
          "old": "seed",
          "new": "bloom"
        }
      ],
      "excerpt": null
    }
  ]
}