Repository navigation
feat: per-connection description dialect (markdown or wiki) - #107
Merged
Merged
Conversation
Connections declare which dialect their descriptions are authored in. "markdown" keeps today's conversion to Jira wiki markup, "wiki" marks an instance whose house format is already wiki markup. Existing config files load without migration and default to "markdown". The field is a string set rather than a boolean so a third dialect can be added later without breaking the config format. Refs #106
create() and update() take the dialect the write path resolved instead of converting unconditionally. render_description() is the only place that decides: "markdown" converts as before, "wiki" sends the string verbatim, so a description built from panel macros and wiki ordered lists survives byte-for-byte. Refs #106
Both commands that send a description resolve the dialect in one call to resolve_description_dialect() and pass the result to the service layer: --description-dialect wins over the connection setting, which wins over the default. The help texts say which dialect fits which instance. Fixes #106
"connect add" sets the dialect and keeps the stored one when updating a connection without the option; "connect list" and "connect show" display it, so the setting is visible without reading connections.toml. Refs #106
This was referenced Aug 13, 2026
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.
Closes #106.
Problem
markdown_to_wiki()ran on every description with no way to opt out, so text thatis already legacy wiki markup was rewritten on upload: a
#ordered-list itembecame an
h1.heading, because the Markdown heading rule matches first. Instanceswhose house format is built on panel macros and
#lists could not be served.Change
The dialect a description is authored in is a property of the instance, so it lives
on the connection:
Connection.description_dialect: Literal["markdown", "wiki"], defaultmarkdownresolve_description_dialect()),then handed to the service layer;
services/issues.pyno longer decides whether toconvert - it calls
render_description(), the single place that branches--description-dialect {markdown,wiki}oncreate issueandissue updatefor aone-off deviation
connect addsets it (and keeps the stored value when updating without the option),connect listandconnect showdisplay itADF stays out of scope; the field is a string set rather than a boolean so a third
dialect can be added with the v3 migration (#96) without breaking the config format.
DoR templates and validation levels are untouched.
Behaviour
wikisends the description byte-for-byte, on create and on updatemarkdownbehaves exactly as the current release; the converter and its tests areunchanged
markdownVerification
989 tests pass, all pre-commit hooks green (ruff, mypy, bandit, coverage). New tests
cover the model, config round-trip and legacy load, dialect resolution, the CLI
override on both commands, the connect surface, and a regression test that uploads a
panel macro, an
h3.heading and a#ordered list and asserts the payload equalsthe input.
Note:
.claude/ai-usage-prompt.mdwas edited in place instead of regenerated,because regenerating it from a local template currently drops documented sections
(#105).