@atlassian-dc-mcp/bitbucket 0.24.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/build/__tests__/bitbucket-service.test.js +166 -16
- package/build/__tests__/bitbucket-service.test.js.map +1 -1
- package/build/__tests__/bitbucket-token-optimization.test.js +1 -1
- package/build/__tests__/bitbucket-token-optimization.test.js.map +1 -1
- package/build/bitbucket-response-mapper.js +3 -3
- package/build/bitbucket-response-mapper.js.map +1 -1
- package/build/bitbucket-service.d.ts +38 -3
- package/build/bitbucket-service.d.ts.map +1 -1
- package/build/bitbucket-service.js +130 -24
- package/build/bitbucket-service.js.map +1 -1
- package/build/index.js +6 -2
- package/build/index.js.map +1 -1
- package/build/pr-comment-mapper.d.ts +2 -0
- package/build/pr-comment-mapper.d.ts.map +1 -1
- package/build/pr-comment-mapper.js +7 -1
- package/build/pr-comment-mapper.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/bitbucket-service.test.ts +304 -16
- package/src/__tests__/bitbucket-token-optimization.test.ts +1 -1
- package/src/bitbucket-response-mapper.ts +3 -3
- package/src/bitbucket-service.ts +175 -25
- package/src/index.ts +13 -3
- package/src/pr-comment-mapper.ts +13 -1
- package/tsconfig.tsbuildinfo +1 -1
package/src/pr-comment-mapper.ts
CHANGED
|
@@ -24,6 +24,10 @@ interface CommentAnchor {
|
|
|
24
24
|
path: string;
|
|
25
25
|
diffType: string;
|
|
26
26
|
orphaned: boolean;
|
|
27
|
+
multilineMarker?: {
|
|
28
|
+
startLine: number;
|
|
29
|
+
startLineType: string;
|
|
30
|
+
};
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
interface CommentProperties {
|
|
@@ -131,6 +135,8 @@ interface SimplifiedAnchor {
|
|
|
131
135
|
line: number;
|
|
132
136
|
path: string;
|
|
133
137
|
fileType?: string;
|
|
138
|
+
startLine?: number;
|
|
139
|
+
startLineType?: string;
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
interface SimplifiedComment {
|
|
@@ -240,7 +246,13 @@ function simplifyAnchor(anchor: CommentAnchor): SimplifiedAnchor {
|
|
|
240
246
|
return {
|
|
241
247
|
line: anchor.line,
|
|
242
248
|
path: anchor.path,
|
|
243
|
-
fileType: anchor.fileType
|
|
249
|
+
fileType: anchor.fileType,
|
|
250
|
+
...(anchor.multilineMarker
|
|
251
|
+
? {
|
|
252
|
+
startLine: anchor.multilineMarker.startLine,
|
|
253
|
+
startLineType: anchor.multilineMarker.startLineType
|
|
254
|
+
}
|
|
255
|
+
: {})
|
|
244
256
|
};
|
|
245
257
|
}
|
|
246
258
|
|