Skip to content

Github open issues badge tweaks#763

Open
brandonbothell wants to merge 1 commit into
badgen:mainfrom
brandonbothell:fix-github-badges
Open

Github open issues badge tweaks#763
brandonbothell wants to merge 1 commit into
badgen:mainfrom
brandonbothell:fix-github-badges

Conversation

@brandonbothell

@brandonbothell brandonbothell commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Closes #764

I updated the title of the badge to reflect the contents of the above issue, as well as the color of the badge to reflect the ratio of open to closed issues/PRs.

Another option is to use the GraphQL GitHub API which returns the number of open issues separately from open PRs.

@vercel

vercel Bot commented Apr 24, 2026

Copy link
Copy Markdown

@brandonbothell is attempting to deploy a commit to the Badgen Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented May 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
badgen.net Ready Ready Preview, Comment May 6, 2026 5:42am

Request Review

Comment thread pages/api/github.ts
}
case 'open-issues':
const { open_issues_count } = await meta({ owner, repo })
const { total_count: total_issues_count } = await search({ resource: 'issues', owner, repo })

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to combine the search() request with previous meta() request for faster responses and avoid being rate limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github open issues badge naming

2 participants