Link specs to Forgejo issues (data model, manual link, create-issue button) #25
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/backend#25
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?
First slice of the Forgejo issue <-> spec link feature (see plan discussed in chat).
Scope (PR 1 of 3 -- webhook sync and PDF extract come later):
SpecVersionIssueLinkmodel:spec(FK toSpec, not a specificSpecVersion),repo_full_name,issue_number,cached_state(open/closed),cached_title,last_synced_at,last_synced_via(manual/webhook/poll),sync_error,created_via(manual/issue_button/detected_in_body).Project.default_repofield (owner/repo), optional, used as the default target for the create-issue button.SpecVersion.implementedbecomes derived: when >=1 link exists on the spec,implemented= all linked issuesclosed; otherwise falls back to the existing manual boolean (non-software specs have no link).cached_state/cached_title(no live sync yet -- that's PR 2).repo_full_name(project'sdefault_repoor an explicit override) with title[code] titleand body = current spec content + a link back to the spec in Thierryade, then creates the link withcreated_via=issue_buttonandcached_state=open.Labels, webhook registration, status sync and PDF extract are out of scope here (PR 2 and PR 3).