azdo-cli 0.22.0-develop.828 → 0.22.0-develop.868
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/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -698,6 +698,8 @@ function mapWorkItemComment(comment, fallbackWorkItemId) {
|
|
|
698
698
|
workItemId: comment.workItemId ?? fallbackWorkItemId,
|
|
699
699
|
text: typeof comment.text === "string" ? comment.text : "",
|
|
700
700
|
author: comment.createdBy?.displayName ?? null,
|
|
701
|
+
authorUniqueName: comment.createdBy?.uniqueName ?? null,
|
|
702
|
+
authorId: comment.createdBy?.id ?? null,
|
|
701
703
|
createdAt: comment.createdDate ?? null,
|
|
702
704
|
modifiedAt: comment.modifiedDate ?? null,
|
|
703
705
|
isDeleted: comment.isDeleted === true
|
|
@@ -940,6 +942,8 @@ async function writeCommentText(url, cred, method, text, format, fallback) {
|
|
|
940
942
|
commentId: data.commentId ?? data.id ?? fallback.commentId,
|
|
941
943
|
text: typeof data.text === "string" ? data.text : text,
|
|
942
944
|
author: data.createdBy?.displayName ?? null,
|
|
945
|
+
authorUniqueName: data.createdBy?.uniqueName ?? null,
|
|
946
|
+
authorId: data.createdBy?.id ?? null,
|
|
943
947
|
createdAt: data.createdDate ?? null,
|
|
944
948
|
modifiedAt: data.modifiedDate ?? null,
|
|
945
949
|
url: data.url ?? null
|
|
@@ -959,6 +963,8 @@ async function addWorkItemComment(context, id, cred, text, format = "html") {
|
|
|
959
963
|
commentId: written.commentId,
|
|
960
964
|
text: written.text,
|
|
961
965
|
author: written.author,
|
|
966
|
+
authorUniqueName: written.authorUniqueName,
|
|
967
|
+
authorId: written.authorId,
|
|
962
968
|
createdAt: written.createdAt,
|
|
963
969
|
url: written.url
|
|
964
970
|
};
|
|
@@ -4021,6 +4027,8 @@ function mapComment(comment) {
|
|
|
4021
4027
|
return {
|
|
4022
4028
|
id: comment.id,
|
|
4023
4029
|
author: comment.author?.displayName ?? null,
|
|
4030
|
+
authorUniqueName: comment.author?.uniqueName ?? null,
|
|
4031
|
+
authorId: comment.author?.id ?? null,
|
|
4024
4032
|
content,
|
|
4025
4033
|
publishedAt: comment.publishedDate ?? null,
|
|
4026
4034
|
commentType: comment.commentType ?? null
|
|
@@ -4361,6 +4369,8 @@ async function updateThreadComment(context, repo, cred, prId, threadId, commentI
|
|
|
4361
4369
|
return {
|
|
4362
4370
|
id: data.id,
|
|
4363
4371
|
author: data.author?.displayName ?? null,
|
|
4372
|
+
authorUniqueName: data.author?.uniqueName ?? null,
|
|
4373
|
+
authorId: data.author?.id ?? null,
|
|
4364
4374
|
content: data.content ?? content,
|
|
4365
4375
|
publishedAt: data.publishedDate ?? null
|
|
4366
4376
|
};
|
|
@@ -4391,6 +4401,8 @@ async function postThreadComment(context, repo, cred, prId, threadId, content) {
|
|
|
4391
4401
|
return {
|
|
4392
4402
|
id: data.id,
|
|
4393
4403
|
author: data.author?.displayName ?? null,
|
|
4404
|
+
authorUniqueName: data.author?.uniqueName ?? null,
|
|
4405
|
+
authorId: data.author?.id ?? null,
|
|
4394
4406
|
content: data.content ?? content,
|
|
4395
4407
|
publishedAt: data.publishedDate ?? null
|
|
4396
4408
|
};
|