codeant-cli 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeant-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Code review CLI tool",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@ export async function listPullRequestComments({ name, prNumber, codeantGenerated
21
21
  line: thread.threadContext?.rightFileStart?.line || null,
22
22
  createdAt: comment.publishedDate,
23
23
  updatedAt: comment.lastUpdatedDate,
24
- isCodeantComment: (comment.author?.displayName || '').toLowerCase().includes('codeant'),
24
+ isCodeantComment: (comment.author?.displayName || '').toLowerCase().includes('codeant') || comment.content?.includes('Suggestion'),
25
25
  resolved: thread.status === 2, // Fixed
26
26
  });
27
27
  }
@@ -15,7 +15,7 @@ export async function listPullRequestComments({ name, prNumber, codeantGenerated
15
15
  line: c.inline?.to || null,
16
16
  createdAt: c.created_on,
17
17
  updatedAt: c.updated_on,
18
- isCodeantComment: (c.user?.display_name || c.user?.nickname || '').toLowerCase().includes('codeant'),
18
+ isCodeantComment: (c.user?.display_name || c.user?.nickname || '').toLowerCase().includes('codeant') || (c.content?.raw || c.content?.markup || '').includes('Suggestion'),
19
19
  resolved: c.resolved || false,
20
20
  }));
21
21
 
@@ -20,7 +20,7 @@ export async function listPullRequestComments({ name, prNumber, codeantGenerated
20
20
  line: c.line || c.original_line,
21
21
  createdAt: c.created_at,
22
22
  updatedAt: c.updated_at,
23
- isCodeantComment: c.user?.login?.includes('codeant'),
23
+ isCodeantComment: c.user?.login?.includes('codeant') || c.body?.includes('Suggestion'),
24
24
  inReplyToId: c.in_reply_to_id || null,
25
25
  })),
26
26
  ...issueComments.map(c => ({
@@ -32,7 +32,7 @@ export async function listPullRequestComments({ name, prNumber, codeantGenerated
32
32
  line: null,
33
33
  createdAt: c.created_at,
34
34
  updatedAt: c.updated_at,
35
- isCodeantComment: c.user?.login?.includes('codeant'),
35
+ isCodeantComment: c.user?.login?.includes('codeant') || c.body?.includes('Suggestion'),
36
36
  inReplyToId: null,
37
37
  })),
38
38
  ];
@@ -17,7 +17,7 @@ export async function listPullRequestComments({ name, prNumber, codeantGenerated
17
17
  line: n.position?.new_line || null,
18
18
  createdAt: n.created_at,
19
19
  updatedAt: n.updated_at,
20
- isCodeantComment: n.author?.username?.includes('codeant'),
20
+ isCodeantComment: n.author?.username?.includes('codeant') || n.body?.includes('Suggestion'),
21
21
  resolved: n.resolved || false,
22
22
  discussionId: null,
23
23
  }));