Repository navigation
feat: let vars take their value from an mq query over a file - #151
Merged
Merged
Conversation
harehare
added this pull request to stack #150
October 19, 2026 14:22
harehare
force-pushed
the
feat/vars-from-mq
branch
2 times, most recently
from
October 20, 2026 00:07
3b07de8 to
162b62f
Compare
vars = { VERSION = { mq = "nodes | filter(is_h2) | first() | to_text()", from = "CHANGELOG.md" } } runs the query the way the mq command does and uses the results, one per line. The input is Markdown, MDX, HTML or text by the file extension. ${NAME} in the query and the path refers to other vars, the result is shared within a run, a dry run shows the query, and a missing file or failing query names the variable.
harehare
force-pushed
the
feat/vars-from-mq
branch
from
October 20, 2026 00:16
162b62f to
51bf4e1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vars = { VERSION = { mq = "nodes | filter(is_h2) | first() | to_text()", from = "CHANGELOG.md" } } runs the query the way the mq command does and uses the results, one per line. The input is Markdown, MDX, HTML or text by the file extension. ${NAME} in the query and the path refers to other vars, the result is shared within a run, a dry run shows the query, and a missing file or failing query names the variable.