feat(vcs): add CommitID to ReviewRequest (#115) #118
@@ -247,6 +247,7 @@ func TestAdapter_PostReview_CommitID(t *testing.T) {
|
||||
t.Errorf("expected commit_id %q forwarded to client, got %q", "sha256abc", gotCommitID)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAdapter_PostReview_WithComments_PositionTranslation(t *testing.T) {
|
||||
diff := `diff --git a/main.go b/main.go
|
||||
|
|
||||
--- a/main.go
|
||||
|
sonnet-review-bot
commented
[NIT] Double blank line between **[NIT]** Double blank line between `TestAdapter_PostReview_EventTranslation` and `TestAdapter_PostReview_CommitID`. Go convention (enforced by gofmt) uses a single blank line between top-level declarations. This also appears at the end of the `TestPostReview_EmptyCommitID_OmittedFromPayload` function in `gitea/client_test.go` (double blank before `TestGetPullRequest_Non200`).
|
||||
|
||||
Reference in New Issue
Block a user
[NIT] Missing blank line between
TestAdapter_PostReview_CommitIDandTestAdapter_PostReview_WithComments_PositionTranslation. Minor style inconsistency — all other test functions in the file have a blank line separator.