Write a Jira epic's description by section, and change its Goals and Audience only once the human approves

This commit is contained in:
2026-11-18 10:21:21 +01:00
parent 848f40f0c6
commit 9e47b0d566
14 changed files with 444 additions and 30 deletions
+1 -6
View File
@@ -2,16 +2,15 @@
A write never overwrites a teammate's edit: it sends the version after the one held() read, and Confluence refuses it where someone saved the page since. The human then decides (lilleman, 2026-11-12)."""
import dataclasses
import hashlib
import json
import pathlib
import typing
from adf_codec.convert import adfs_to_markdown, markdown_to_adf, Refused
from atlassian.client import basic_auth, confluence_json, Http, ToAdf, ToMarkdown
from record_store.held import digest_of, Held
from rest_client.json_request import ErrorAnswer
from failure import Failure
from record_store.held import Held
from project_config.settings import Page
# What Confluence answers to a write whose version isn't the one after the version it holds.
@@ -141,7 +140,3 @@ class ConfluencePage:
return Seen(int(held["version"]), str(held["title"]), held.get("digest"))
except (ValueError, KeyError, TypeError) as failure:
return Failure(f"cannot read the version of {self.label} to write over, {over!r}: {failure}")
def digest_of(text: str) -> str:
return hashlib.sha256(text.encode("utf-8")).hexdigest()