Skip to content

Commit

Permalink
Merge pull request #14 from codeforpakistan/stats-page
Browse files Browse the repository at this point in the history
there is a delay betwen stats and actual search. trying to make them …
  • Loading branch information
aliirz authored Jan 25, 2025
2 parents f633e70 + 05d4802 commit 4b037e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function fetchGitHubStats(): Promise<GitHubStats> {

const query = `
query {
openIssues: search(query: "label:civic-tech-issue is:open is:issue", type: ISSUE, first: 100) {
openIssues: search(query: "label:civic-tech-issue is:open is:issue sort:updated-desc", type: ISSUE, first: 100) {
issueCount
nodes {
... on Issue {
Expand All @@ -132,7 +132,7 @@ export async function fetchGitHubStats(): Promise<GitHubStats> {
}
}
}
closedIssues: search(query: "label:civic-tech-issue is:closed is:issue", type: ISSUE, first: 100) {
closedIssues: search(query: "label:civic-tech-issue is:closed is:issue sort:updated-desc", type: ISSUE, first: 100) {
issueCount
nodes {
... on Issue {
Expand All @@ -146,7 +146,7 @@ export async function fetchGitHubStats(): Promise<GitHubStats> {
}
}
}
repositories: search(query: "label:civic-tech-issue", type: REPOSITORY, first: 100) {
repositories: search(query: "label:civic-tech-issue sort:updated-desc", type: REPOSITORY, first: 100) {
repositoryCount
}
}
Expand Down

0 comments on commit 4b037e8

Please sign in to comment.