Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(gitlab): submit review comments on context lines #6348

Mergedtarik02(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/6348/headmerged by juliusmarminge View on GitHub

Showing 13 changed files with 23 additions and 3 deletions (loading 10).

x
0 of 13 viewed, 13 left
7 additions and 1 deletionapps/server/src/pullRequest/BitbucketPullRequestApi.test.tsModified
View file
@@ -776,7 +776,13 @@
number: 7,
verdict: "request-changes",
body: "Two things.",
- comments: [{ path: "src/a.ts", line: 12, side: "left", body: "why remove?" }],
+ comments: [
+ {
+ path: "src/a.ts",
+ position: { kind: "deleted", oldLine: 12 },
+ body: "why remove?",
+ },
+ ],
});
​
expect(callAt(0).url).toContain("/pullrequests/7/comments");
15 additions and 1 deletionapps/server/src/pullRequest/BitbucketPullRequestApi.tsModified
View file
@@ -12,6 +12,7 @@
PullRequestMergeMethod,
PullRequestMergeability,
PullRequestReviewCommentDraft,
+ PullRequestReviewPosition,
PullRequestReviewThread,
PullRequestReviewVerdict,
PullRequestReviewerCandidateList,
@@ -354,6 +355,19 @@