fix: add missing LinkBranch stubs to test doubles

Fix go vet/test failures by adding LinkBranch methods to stubForge, prCapturingForge, testForge, and fakeForge. Update test data from 'sam/archie' to 'acme/widget' and state label defaults from 'archie:*' to 'agent:*'. Add Taskfile.yml for project build automation. Implement container self-network detection so spawned agents join the daemon's Docker network.
This commit is contained in:
sam committed 2026-07-24 13:32:50 +10:00
1 parent d80401d595
commit 6ebbd3b2cf
22 files changed
+273 -138

No files matched your search

+2 -2
View File
@@ -38,7 +38,7 @@ func TestAssignedIssuesExcludesPRs(t *testing.T) {
func TestIssuesWithLabelExcludesPRs(t *testing.T) {
c, mux := newTestClient(t)
mux.HandleFunc("GET /repos/o/r/issues", func(w http.ResponseWriter, r *http.Request) {
if got := r.URL.Query().Get("labels"); got != "archie" {
if got := r.URL.Query().Get("labels"); got != "widget" {
t.Errorf("labels = %q", got)
}
writeJSON(t, w, []map[string]any{
@@ -46,7 +46,7 @@ func TestIssuesWithLabelExcludesPRs(t *testing.T) {
})
})
issues, err := c.IssuesWithLabel(t.Context(), "o", "r", "archie")
issues, err := c.IssuesWithLabel(t.Context(), "o", "r", "widget")
if err != nil {
t.Fatal(err)
}