diff --git a/packages/host-service/src/trpc/router/workspace-creation/procedures/search-github-issues.ts b/packages/host-service/src/trpc/router/workspace-creation/procedures/search-github-issues.ts index bd4cbc48098..044a8ac963a 100644 --- a/packages/host-service/src/trpc/router/workspace-creation/procedures/search-github-issues.ts +++ b/packages/host-service/src/trpc/router/workspace-creation/procedures/search-github-issues.ts @@ -112,9 +112,6 @@ export const searchGitHubIssues = protectedProcedure if (issue.url.includes("/pull/")) { return { issues: [] }; } - if (!input.includeClosed && issue.state !== "open") { - return { issues: [] }; - } return { issues: [issue] }; } const issues = await ghSearch( @@ -145,9 +142,6 @@ export const searchGitHubIssues = protectedProcedure if (issue.pull_request) { return { issues: [] }; } - if (!input.includeClosed && issue.state !== "open") { - return { issues: [] }; - } return { issues: [ { diff --git a/packages/host-service/src/trpc/router/workspace-creation/procedures/search-pull-requests.ts b/packages/host-service/src/trpc/router/workspace-creation/procedures/search-pull-requests.ts index c82587cbc8a..936571aa77d 100644 --- a/packages/host-service/src/trpc/router/workspace-creation/procedures/search-pull-requests.ts +++ b/packages/host-service/src/trpc/router/workspace-creation/procedures/search-pull-requests.ts @@ -119,9 +119,6 @@ export const searchPullRequests = protectedProcedure if (normalized.isDirectLookup) { const prNumber = Number.parseInt(effectiveQuery, 10); const pr = await ghDirectLookup(ctx.execGh, repo, prNumber); - if (!input.includeClosed && pr.state !== "open") { - return { pullRequests: [] }; - } return { pullRequests: [pr] }; } const pullRequests = await ghSearch( @@ -150,9 +147,6 @@ export const searchPullRequests = protectedProcedure pull_number: prNumber, }); const state = normalizePullRequestState(pr.state, pr.merged_at); - if (!input.includeClosed && state !== "open") { - return { pullRequests: [] }; - } return { pullRequests: [ {