{"repo":"logseq/graph-validator","free":true,"listed":false,"github":"https://github.com/logseq/graph-validator","clone":"git clone https://github.com/logseq/graph-validator.git","description":"Validate your logseq graphs","language":"Clojure","stars":52,"topics":["github-actions","logseq","nbb"],"license":"MIT","category":"cli-tools","readme_excerpt":"Description This is a github action to run validations on a Logseq graph. This action can also be run as a CLI. Validations check to ensure queries, block refs and properties are valid. This action can catch errors that show up in the UI e.g. Invalid query . Usage To setup this action, add the file .github/workflows/test.yml to your graph's github repository with the following content: That's it! This job will then run on future git pushes and fail if any invalid parts of your graph are detected. NOTE: The above example defaults to picking up new changes. If you'd prefer to stay on a stable version use the format logseq/graph-validator@VERSION e.g. logseq/graph-validator@v0.1.0 . See CHANGELOG.md for released versions. Action Inputs This action can take inputs e.g.: This action has the following inputs: directory Required: The directory of the graph to test. Defaults to . . exclude Optional: A whitespace separated list of validations to exclude from running. Validation names are listed in default validations e.g. tags-and-page-refs-have-pages . Defaults to empty. CLI To use this as a CLI locally, first install babashka and clojure. Then: Then use it from any logseq graph directory! NOTE: Running the CLI currently depends on a clean git state e.g. git status prints nothing to commit, working tree clean . Configuration To configure the validator, create a .graph-validator/config.edn file in your graph's directory. See the config file for the full list of configuration keys. Val","default_branch":null,"files":null,"tree":[],"storefront":"/r/logseq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/logseq/graph-validator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}