Skip to content

Commit c361acc

Browse files
authored
PR is completed and approved, but cannot be merged because it is in draft state (#7468)
Fixes #7315
1 parent c4534bb commit c361acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lm/tools/activePullRequestTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class ActivePullRequestTool implements vscode.LanguageModelTool<FetchIssu
148148
currentApprovals: status[1]?.approvals.length ?? 0,
149149
areChangesRequested: (status[1]?.requestedChanges.length ?? 0) > 0,
150150
},
151-
isDraft: pullRequest.isDraft,
151+
isDraft: pullRequest.isDraft ? 'is a draft and cannot be merged until marked as ready for review' : 'false',
152152
codingAgentSession,
153153
changes: (await pullRequest.getFileChangesInfo()).map(change => {
154154
if (change instanceof InMemFileChange) {

0 commit comments

Comments
 (0)