Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .github/workflows/vale-docs-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,33 @@ jobs:
- name: check out repo
uses: actions/checkout@v4
with:
fetch-depth: 2
# changed-files needs the commit where this branch split from main to
# work out what the PR changed. A shallow checkout usually doesn't
# reach it, so the step logged "Unable to find merge base" and fell
# back to a cruder comparison. See docs-tracking#377.
fetch-depth: 0

- name: get changed files
id: changed-files

uses: tj-actions/changed-files@v46.0.5
with:
fetch_depth: 2
# Emit the list as a JSON array, which is the one shape vale-action
# parses without a separator. escape_json defaults to true, which
# backslash-escapes the quotes and makes the array unparseable.
json: true
escape_json: false

# run reviewdog and the linter
- name: run reviewdog and linter
uses: errata-ai/vale-action@reviewdog
with:
# tj-actions/changed-files emits a space-separated list, so telling the
# action it is comma-separated made it pass Vale one argument holding
# every path joined by spaces. That is a valid path only when a PR
# changed exactly one file, so from 2023 this check worked on
# single-file PRs and silently skipped every larger one: Vale answers
# an unmatched path with an empty result and exit 0. See
# docs-tracking#375.
# vale-action reads this input one of three ways: a single existing
# path, a JSON array, or a string split on 'separator'. It trims
# 'separator', so a space can't be passed that way, and an unparseable
# value makes it lint the whole repo instead. A JSON array is the only
# shape that reliably means "these files". See docs-tracking#375.
files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
separator: " "
# added, diff_context, file, nofilter
filter_mode: file
# github-pr-check, github-pr-review, github-check
Expand Down
2 changes: 1 addition & 1 deletion litefs/how-it-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extensive consistency checking to ensure correctness.

By applying these page sets in the LTX files in order, we can reconstruct the
state of our SQLite database at any point in time. We can also copy them to
another nodes in order to replicate the changes in real-time to our cluster.
other nodes to replicate the changes in real time to our cluster.


### Rollback journal handling
Expand Down
Loading