fix(timeline): gitea_issue_timeline omits label names, title changes and milestone/assignee payloads #34
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea#34
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
gitea_issue_timelinelists event types but drops the payload: label events show no label name, title changes show neither old nor new title, milestone events show no milestone, and assignee events show no user. The feed cannot be used to reconstruct what happened to an issue.Repro
The same events in the web UI show label names (
type/task,area/dsh, …), the title change, and the milestone title.Observed vs expected
ev.body/ev.comment.bodyis rendered; label/milestone/title/assignee payloads are ignored (and reaction bodies render as1).[label] added type/task,[change_title] old → new,[milestone] QA probe milestone,[assignees] added @dsh.Root cause
lib/handlers/formatters.js:Only
body/comment.bodyis considered; Forgejo timeline rows carrylabel.name,old_title/new_title,milestone.title,assignee, etc.Proposed fix
Add per-event-type rendering with a fallback to the current format; add
created_at(already available) and tests for label/change_title/milestone/assignee/comment/reaction events.Acceptance: the Repro shows label names, the title change and the milestone, without empty trailing colons.
Duplicate check
Searched
timeline(state all) — no existing issue.Layer
dsh-gitea plugin/tool (formatter).
Fixed in
56f41de(PR #41).The timeline formatter now renders per event type:
added type/task(label),Old → New(change_title), milestone title,added @dsh(assignees), comment body, reaction, plus the timestamp.label,old_title,new_title,removed_label,removed_assigneeandreactionwere added toRECORD_KEYS.Live on
ml-lab/tardits#2: labels, assignee, title change and close events all show their payloads.Tests:
test/qa-formatters.test.mjs.