Skip to main content

Easier open source contribution process for newcomers

Stop digging through stale GitHub issues. gh-issue-lens finds unassigned, beginner-friendly open source issues in any repository and prepares them for LLM analysis in seconds. It bypasses API rate limits by grabbing issues, linked Pull Requests, assignees, and non-bot comments in a single network pass.

How to use it?

Option 1: Install from PyPI

pip install gh-issue-lens

Export your GitHub Personal Access Token:

First of all, create your personal github token from your github account then use it.

export GITHUB_TOKEN="your_personal_access_token"

Fetch issues:

gh-issue-lens kubernetes kubernetes -d 200

Filter by labels:

gh-issue-lens kubernetes kubernetes -l "good first issue" "help wanted" -d 50

And for more commands, you can see the sections below. The guidelines are the same. The only difference is to use gh-issue-lens directly instead of python3 cli.py.

Option 2: Build it manually

Clone the repo:

git clone https://github.com/MohamedM216/gh-issue-lens.git

Install requirements:

pip3 install requests

Export your GitHub Personal Access Token:

First of all, create your personal github token from your github account then use it.

export GITHUB_TOKEN="your_personal_access_token"

Verify it works:

cd src/gh_issue_lens/
python3 cli.py --help

Fetch 100 issues from a repository:

100 issues is the default depth you can change it using the -d option.

python3 cli.py kubernetes kubernetes

Filter by up to 5 labels (ORed) and set a depth limit:

This fetches a maximum of 50 issues that have EITHER the "good first issue", "help wanted", or "bug" label.

python3 cli.py kubernetes kubernetes -l "good first issue" "help wanted" "bug" -d 50

Save to a custom JSON file:

If you want to use a custom name for the output file, you can run:

python3 cli.py kubernetes kubernetes -l "feature" -d 10 -o custom_dataset.json

Incremental Saving & Resumability (Checkpointing):

When scraping massive repositories (like Kubernetes), hitting GitHub's API rate limits or network timeouts is common. You no longer have to worry about losing your progress!

  • JSONL Format: Issues are now saved line-by-line instantly as they are fetched, ensuring zero data loss.
  • Auto-Resume: The tool creates a hidden .checkpoint file tracking your progress. If the script crashes or you stop it, simply run the exact same command again. It will automatically resume from the exact page it left off, saving your API budget and time.

Exclude issues with open PRs:

python3 cli.py kubernetes kubernetes --exclude-open-prs

Is this issue actually available? (Stale PR detection)

An issue with a fresh open PR is probably taken. An issue whose only PR was abandoned months ago, or closed without merging is usually still up for grabs.

Every exported issue now includes an availability field:

  • likely_taken: a fresh open PR exists (updated within --stale-pr-days)
  • stale_pr_open: open PRs exist but all are stale, usually still approachable
  • merged_pr_linked: a linked PR was merged
  • pr_closed_unmerged: a previous attempt failed, the issue is open again
  • no_linked_pr: nobody has opened a PR yet
gh-issue-lens kubernetes kubernetes --stale-pr-days 60

Note: --exclude-open-prs now skips only issues with a fresh open PR, so abandoned-PR issues are no longer hidden from you.

SQLite caching:

gh-issue-lens can cache already-exported issues in a local SQLite database. This prevents duplicate issues from being written again when you run the same export multiple times.

Enable caching:

python3 cli.py kubernetes kubernetes -d 200 --cache

By default, the cache is stored in .gh_issue_lens_cache.db. Use a custom cache database:

python3 cli.py kubernetes kubernetes -d 200 --cache --cache-db my_cache.db

Run again with caching enabled. Issues that were already exported in previous runs will be skipped. You can also enable early stopping when the tool keeps finding only cached issues:

python3 cli.py kubernetes kubernetes -d 200 --cache --cache-stop

This is useful when re-running the tool against the same repository and you only want newly discovered issues. To reset the cache, delete the cache file:

rm .gh_issue_lens_cache.db

Caching is different from checkpointing: checkpointing helps resume a crashed or interrupted run, while caching helps avoid exporting the same issues again across separate runs.

Compare repositories: which community should you start with?

gh-issue-lens stats answers the question every beginner asks first: which repo should I even try?

gh-issue-lens stats kubernetes/kubernetes pandas-dev/pandas

Or from a file (one owner/repo per line, # comments allowed):

gh-issue-lens stats --repos-file repos.txt

Three output layers:

  • Terminal (default): comparison table + bar chart, plus a 0-100 beginner score.
  • HTML report: --html report.html writes a self-contained page with bar charts.
  • Raw JSON for LLMs: --json stats.json, or --json - to print to stdout and pipe anywhere.

What the numbers mean

  • VERDICT (decide in 2 seconds): 🌱 GREAT (≥75) · 👍 GOOD (≥55) · ⚠️ MIXED (≥35) · 🧊 COLD (<35).
  • beginner score (0-100): responsiveness (30) + beginner-issue funnel (20) + answered-issue share (15) + freshness (15) + merged-PR pace per week (12) + push recency (8).
  • REPLY: median time until the first non-bot, non-author comment on the 100 most recent open issues.
  • UNANSW / STALE: share of those 100 issues with no human reply / untouched for --stale-days (default 180).
  • PR/WK: pull requests merged in the last 7 days (the monthly count is in the JSON and HTML report).
  • The HTML report (--html) adds a summary per repo: how fast people answer, how many beginner issues are open, and how active the merge pace is.

What's next?

The generated JSON file is suitable to be used as context for Large Language Models (like Gemini, Claude, or ChatGPT). You can upload the output file to an LLM and use targeted prompts to find the perfect issue to work on.

Example Prompts to try:

"I am a newcomer to this repository. Based on the attached JSON, find an issue that is easy to implement, has no active PRs, and doesn't have a long, debated comment history."

"Filter these issues and list only the ones related to [backend / frontend / database / specific component]."

"Read the comments on these issues. Which maintainers seem the most responsive and welcoming to beginners? Point me to issues authored or reviewed by them."

"Summarize the technical requirements for issue #123 based on its description and comment thread. What files should I look at first?"

Don't forget to STAR the repository :)

Happy hacking!

Metadata

Release files for gh-issue-lens 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gh-issue-lens 0.2.0
File Size Uploaded Provenance Actions
gh_issue_lens-0.2.0.tar.gz 21.3 kB With provenance Details for gh_issue_lens-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gh-issue-lens 0.2.0
File Interpreter ABI Platform Actions
gh_issue_lens-0.2.0-py3-none-any.whl Python 3 none any Details for gh_issue_lens-0.2.0-py3-none-any.whl

Total release size: 39.6 kB

Release files / gh_issue_lens-0.2.0.tar.gz

Download URL gh_issue_lens-0.2.0.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ae0582c5af8795500dddc2a15626e653e3bd112213ca2eaceeaa5a73a0ac6fe8
BLAKE2b-256 checksum
How to use checksums
8ddf24540fa2d9315ebf42525773a27e9d65dff7cccf35996df1cb07a63a388c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / gh_issue_lens-0.2.0-py3-none-any.whl

Download URL gh_issue_lens-0.2.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
347c92c931470d70b581c1be7462f44d7afb1cfb0156e69b9e3221c706d9b6ed
BLAKE2b-256 checksum
How to use checksums
4778551acf51d2162fe934619550d1e8308210e24b1fcee7f6db7bf111713184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for gh-issue-lens 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gh_issue_lens-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page