Remove 'state: open' from pull request creation and check functions

This commit is contained in:
Osvaldo Ortega
2026-02-26 15:09:54 -08:00
parent c4f26872d1
commit 7c32c58bbd

View File

@@ -102,7 +102,6 @@ async function checkOpenPullRequest(gitAPI: GitAPI, _sessionResource: vscode.Uri
owner: resolved.remoteInfo.owner,
repo: resolved.remoteInfo.repo,
head: `${resolved.remoteInfo.owner}:${resolved.head.name}`,
state: 'open',
});
vscode.commands.executeCommand('setContext', 'github.hasOpenPullRequest', pullRequests.length > 0);
@@ -145,7 +144,6 @@ async function createPullRequest(gitAPI: GitAPI, sessionResource: vscode.Uri | u
owner: remoteInfo.owner,
repo: remoteInfo.repo,
head: `${remoteInfo.owner}:${head.name}`,
state: 'open',
});
if (pullRequests.length > 0) {