Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -145,9 +142,6 @@ export const searchGitHubIssues = protectedProcedure
if (issue.pull_request) {
return { issues: [] };
}
if (!input.includeClosed && issue.state !== "open") {
return { issues: [] };
}
return {
issues: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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: [
{
Expand Down
Loading