Repository navigation
feat(issue): add --dry-run to create issue and issue update - #147
Merged
Merged
Conversation
The dry run prints the resolved fields payload and the description after dialect conversion - the exact string that would be sent - and performs no API write. On instances where issues cannot be deleted and API-posted content cannot be edited, this makes 'did we hit the customer format exactly?' answerable before the irreversible write. The payload assembly moves into build_create_fields/build_update_fields in the service layer, shared by the real calls and the preview so the two can never drift apart. currentUser() is not resolved in a dry run (no myself() read); the payload marks the spot instead. create issue gains the flag; issue update extends --dry-run from the transition preview to all field updates, labels, epic link, timetracking and worklog - previously the flag was silently ignored without --status while the updates were still applied. Closes #135
Regenerate .claude/ai-usage-prompt.md after --dry-run for create issue and issue update.
f3rdy
force-pushed
the
feat/135-dry-run-create-update
branch
from
October 21, 2026 12:09
244d80f to
a28f128
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.
Why (from #135)
On instances where issues cannot be deleted and API-posted content cannot be edited, the first write is the only write. Until now the only way to check the converted text beforehand was importing budjira internals (
from budjira.utils.description import render_description) from an external script.--dry-runmakes "did we hit the customer format exactly?" answerable before the irreversible write.What
budjira create issue --dry-runprints the resolvedfieldspayload (project, issuetype, priority, labels, parent, timetracking, custom fields) and the description after dialect conversion, then exits 0 — no client is even constructed.budjira issue update --dry-runpreviously only previewed transitions and was silently ignored without--statuswhile field updates were still applied. It now previews every requested operation — fields payload, labels, epic link, timetracking, worklog — and applies nothing.build_create_fields/build_update_fields(budjira/services/issues.py), shared by the real calls and the preview so the two cannot drift apart. Service behaviour is unchanged (existing tests green);render_description's signature is untouched, so the external checker script keeps working.currentUser()is not resolved in a dry run (nomyself()read); the payload marks the spot with<currentUser()>instead.Evidence (real dry-run output, measured)
Tests
from_connection.assert_not_called()); update dry run performs no write (update_issue,issue,add_labels,link_to_epic,add_worklogall not called); converted-string assertions for markdown→wiki and wiki passthrough.currentUser()with and without id / unassign), extra-fields merge, and input-dict immutability;update()still resolvescurrentUser()viamyself().budjira ai usage-prompt --plainoutput checked; regenerated prompt committed separately.Closes #135