diff --git a/CHANGELOG.md b/CHANGELOG.md index 2095518..4f5518e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,19 @@ All notable user-facing changes are recorded here. ## 0.0.2 +- Updated `tangled.org/core` to `v1.14.0-alpha` to match the current Tangled + record schema. - Align numeric issue and pull request arguments with Tangled AppView numbers. - Added `--atproto` raw record mode for issue and pull request list/view/action commands; it accepts AT URIs, rkeys, or unique rkey prefixes and rejects numeric AppView IDs. - Issue and pull request list output now shows stable rkeys instead of local synthetic numbers. +- Issue and pull request records now include repository DIDs, and related + backlink records are written so AppView can associate records with the + correct repository identity. +- Expanded coverage for repository resolution, CLI workflows, Tangled service + interactions, authentication, config, and output formatting. ## 0.0.1 diff --git a/internal/tangled/issues.go b/internal/tangled/issues.go index 106f61f..f3929a2 100644 --- a/internal/tangled/issues.go +++ b/internal/tangled/issues.go @@ -111,7 +111,9 @@ func (s *IssueService) ResolveIssueNumber(ctx context.Context, appViewURL, owner if err != nil { return nil, err } - defer resp.Body.Close() + defer func() { + _ = resp.Body.Close() + }() if resp.StatusCode < 200 || resp.StatusCode >= 300 { return nil, fmt.Errorf("issue #%d not found in AppView: %s", number, resp.Status) } diff --git a/internal/tangled/pulls.go b/internal/tangled/pulls.go index 1db1e31..5e36937 100644 --- a/internal/tangled/pulls.go +++ b/internal/tangled/pulls.go @@ -210,7 +210,9 @@ func (s *PullService) ResolvePullNumber(ctx context.Context, appViewURL, owner, if err != nil { return nil, err } - defer resp.Body.Close() + defer func() { + _ = resp.Body.Close() + }() if resp.StatusCode < 200 || resp.StatusCode >= 300 { return nil, fmt.Errorf("pull #%d not found in AppView: %s", number, resp.Status) } diff --git a/internal/tangled/service_test.go b/internal/tangled/service_test.go index 7b71adb..ba25c77 100644 --- a/internal/tangled/service_test.go +++ b/internal/tangled/service_test.go @@ -802,12 +802,6 @@ func withCreateRecordHook(hook func(collection string, record json.RawMessage)) } } -func withPutRecordHook(hook func(collection, rkey string, record json.RawMessage)) fakePDSOption { - return func(s *fakePDSState) { - s.putRecordHook = hook - } -} - func newFakePDSServer(t *testing.T, records map[string]fakeRecord, opts ...fakePDSOption) *httptest.Server { t.Helper() state := &fakePDSState{records: records, blobs: map[string][]byte{}}