M7 — Jira write-back #17
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-8/stage-m7-jira-write-back"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements M7 — Jira write-back (issue #8): after MR creation, reflect the MR back on the Jira ticket per
JIRA_WRITEBACK_MODE— add a comment with the MR link and/or transition the issue to In Review. Write-back after MR is non-fatal.Changes
src/writeback/module (vertical slice):resolveTransition— mapsJIRA_TRANSITION_IN_REVIEW(name→id, case-insensitive, id passthrough);not-configured/not-foundoutcomes.runWriteback— per-mode orchestration (comment/transition/both); unresolved or failed transition degrades to a comment; never throws (records non-fatal errors).formatWritebackSummary— one-line summary for the M8 final summary.JiraWriteClientinterface (getTransitions,transitionIssue,addComment) implemented onJiraRestClient(REST v3, ADF comment body).request()helper (retry +JiraErrorclassification); refactoredfetchIssueto reuse it.Testing
npm run build(tsc --noEmit) cleannpm run lintcleanChecklist
Closes #8.