Skip to content

Commit 257745c

Browse files
committed
CCR
1 parent e6b7f7b commit 257745c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lm/skills/address-pr-comments/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Work through the grouped comments file by file:
5454
### 5. Verify
5555

5656
After all changes are made:
57-
- Review that each originally unresolved comment has a corresponding code change or a note about why not code change was needed.
57+
- Review that each originally unresolved comment has a corresponding code change or a note about why no code change was needed.
5858
- Ensure no unrelated code was modified
5959

6060
### 6. Summarize

src/lm/tools/activePullRequestTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export abstract class PullRequestTool implements vscode.LanguageModelTool<FetchI
5353
return new vscode.LanguageModelToolResult([new vscode.LanguageModelTextPart('There is no active pull request')]);
5454
}
5555

56-
if ((options.input as PullRequestToolParams).refresh) {
56+
if ((options.input as PullRequestToolParams | undefined)?.refresh) {
5757
await Promise.all([
5858
pullRequest.githubRepository.getPullRequest(pullRequest.number),
5959
pullRequest.getTimelineEvents(),
@@ -98,7 +98,7 @@ export abstract class PullRequestTool implements vscode.LanguageModelTool<FetchI
9898
return `File: ${change.fileName} was ${change.status === GitChangeType.ADD ? 'added' : change.status === GitChangeType.DELETE ? 'deleted' : 'modified'}.`;
9999
}
100100
}),
101-
lastUpdatedAt: pullRequest.updatedAt.toLocaleString()
101+
lastUpdatedAt: new Date(pullRequest.updatedAt).toLocaleString()
102102
};
103103

104104
const result = new vscode.ExtendedLanguageModelToolResult([new vscode.LanguageModelTextPart(JSON.stringify(pullRequestInfo))]);

0 commit comments

Comments
 (0)