refactor(forge): delete dead CreateIssue surface

DELETE: no document in docs/architecture/ or docs/prds/ specifies a
production consumer for forge.IssueForge.CreateIssue. It has no
production caller -- the remaining repo matches are the GitHub
CreateIssueReaction and Gitea CreateIssueComment SDK methods. Removing
the interface method and the GitHub/Gitea/Noop implementations; the
other fakes that still define CreateIssue are test-only and out of lane
ownership, and an interface with one fewer method keeps them satisfying.
RepliesAfter and forge.Reply are untouched (a parallel FLAG record).
This commit is contained in:
sam committed 2026-09-15 13:13:55 +10:00
1 parent 1177012a3a
commit a406c36f27
6 files changed
-50

No files matched your search

-14
View File
@@ -302,20 +302,6 @@ func (c *GitHubClient) LinkBranch(ctx context.Context, owner, repo string, issue
return nil
}
// CreateIssue opens a new issue and returns its number.
func (c *GitHubClient) CreateIssue(ctx context.Context, owner, repo, title, body string, labels []string) (int, error) {
req := &github.IssueRequest{
Title: &title,
Body: &body,
Labels: &labels,
}
iss, _, err := c.gh.Issues.Create(ctx, owner, repo, req)
if err != nil {
return 0, fmt.Errorf("create issue %s/%s: %w", owner, repo, err)
}
return iss.GetNumber(), nil
}
// State labels mirror the task lifecycle onto the forge so archie's
// status is visible at a glance. SQLite remains the source of truth;
// labels are the human-facing projection -- and removing the parked