Skip to content

Commit 02e1f30

Browse files
authored
checking if model is resolved first (#6398)
1 parent 8c88363 commit 02e1f30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lm/tools/fetchIssueTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class FetchIssueTool extends RepoToolBase<FetchIssueToolParameters> {
5050
body: issueOrPullRequest.body,
5151
comments: issueOrPullRequest.item.comments?.map(c => ({ body: c.body, author: c.author.login })) ?? []
5252
};
53-
if (issueOrPullRequest instanceof PullRequestModel) {
53+
if (issueOrPullRequest instanceof PullRequestModel && issueOrPullRequest.isResolved()) {
5454
const fileChanges = await issueOrPullRequest.getFileChangesInfo();
5555
const fetchedFileChanges: FileChange[] = [];
5656
for (const fileChange of fileChanges) {

0 commit comments

Comments
 (0)