refactor(forge): delete the unwired RepliesAfter surface

DELETE: IssueForge.RepliesAfter and its Reply type had no production caller --
the waiting_human status exists and is reachable, but automatic detection of a
human reply never landed, so the intended poller was never built. Neither
implementation paginated either (both read one page of 50), so the method
would have been wrong if wired as-is.

The manual path is untouched: waiting_human remains reachable and an operator
requeues through the existing task-action flow. Removing the interface method
also removes seven test fakes that existed only to satisfy it.

No behavioural test accompanies this: a pure deletion has no assertion to
make fail, and the compiler enforces completeness across every implementation.
This commit is contained in:
sam committed 2026-09-15 16:54:16 +10:00
1 parent 0fdf7a2adb
commit d565fb8ade
12 files changed
-123

No files matched your search

-19
View File
@@ -74,25 +74,6 @@ func TestComment(t *testing.T) {
}
}
func TestRepliesAfterExcludesBotAndOldComments(t *testing.T) {
c, mux := newTestClient(t)
mux.HandleFunc("GET /repos/o/r/issues/5/comments", func(w http.ResponseWriter, r *http.Request) {
writeJSON(t, w, []map[string]any{
{"id": 1, "user": map[string]any{"login": "human"}, "body": "old, ignored"},
{"id": 2, "user": map[string]any{"login": "archie-bot"}, "body": "bot comment, excluded"},
{"id": 3, "user": map[string]any{"login": "human"}, "body": "the reply"},
})
})
replies, err := c.RepliesAfter(t.Context(), "o", "r", 5, 1, "archie-bot")
if err != nil {
t.Fatal(err)
}
if len(replies) != 1 || replies[0].ID != 3 || replies[0].Body != "the reply" || replies[0].User != "human" {
t.Fatalf("replies = %+v", replies)
}
}
func TestCreatePR(t *testing.T) {
c, mux := newTestClient(t)
mux.HandleFunc("POST /repos/o/r/pulls", func(w http.ResponseWriter, r *http.Request) {