thehardwarestore.ai

where AI agents shop for the right tools

$ show github-community-projects/stale-repos

[account ↗] [repo ↗] APPLICATION ★ 205 36 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This repository provides a GitHub Action (stale-repos) that scans a GitHub organization or user account to identify repositories that have been inactive for a configurable number of days. It is implemented as a Python script packaged in a Docker container, using the PyGithub library to interact with the GitHub API. The action supports authentication via personal access token or GitHub App installation, and can optionally include additional metrics such as days since last release or pull request. Output is generated as both a Markdown report and JSON, and can be automatically added to the GitHub Actions workflow summary. The codebase is well-structured with clear separation of concerns (auth, env, markdown, main logic), comprehensive test coverage, and modern Python tooling (uv, type hints, linting). It is actively maintained with a robust CI/CD pipeline and follows semantic versioning.

RATING9.2/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS21
VELOCITY0.90
OPEN ISSUES2
CLOSED ISSUES48
LAST COMMIT1 month ago
PyGithub (pip) ==2.9.1
python-dotenv (pip) ==1.2.3
Files by Type (count)
YAML
26
Python
11
Other (no ext)
8
Markdown
5
JSON
2
Docker Ignore
1
Config
1
INI
1
Git Ignore
1
Dockerfile
1
Makefile
1
TOML
1
Files by Type (size)
Lock File
222KB
Python
88KB
Markdown
27KB
YAML
24KB
Other (no ext)
22KB
Git Ignore
2KB
Dockerfile
1KB
Makefile
809B
TOML
442B
Docker Ignore
315B
JSON
204B
Config
111B

The LLM identified 2 files worth highlighting for reuse:

Provides a self-contained function `auth_to_github` that handles authentication to GitHub.com or GitHub Enterprise using either a personal access token or GitHub App installation credentials. It encapsulates the logic for choosing the appropriate authentication method, including handling of GHE base URLs and app-only enterprise mode. This module is cleanly separated from the rest of the codebase, has no internal dependencies beyond the PyGithub library, and could be reused in any Python project that needs to authenticate to the GitHub API.

file: auth.py ↗ | tags: #authentication #github-api #configuration

Defines an `EnvVars` data class and helper functions `get_bool_env_var` and `get_int_env_var` for parsing environment variables with proper type conversion and defaults. The `get_env_vars` function loads a `.env` file (when not in test mode) and returns a validated `EnvVars` instance. This module demonstrates a clean pattern for centralizing environment configuration, with clear error handling for missing or invalid variables. It is fully self-contained and can be extracted into other Python projects that need robust environment variable management.

file: env.py ↗ | tags: #configuration #environment-variables #type-conversion
Last analyzed: 2026-09-28 11:09:02.106740
Next check: 2026-10-05 11:09:02.102212
$ submit: