Skip to main content

github-repository-report

Generate timestamp reports for local GitHub repositories and include command output from each repository.

Requirements

  • Python 3
  • GitHub CLI (gh) installed

The script only checks that gh exists. It does not call GitHub for the timestamp report.

Usage

github-repository-report

Without repository arguments, the CLI scans your home directory for local Git repositories with GitHub remotes, prints the discovered repositories, and asks which reports to generate. You can enter a single number, a comma-separated list, a range, or all.

Generate a report for a specific discovered local repository:

github-repository-report --organization=kaizten --repository=tools

The command scans --root and automatically selects the matching local checkout. Use --repo=kaizten/tools only to generate a report without resolving a local checkout; repository-local commands and commits are unavailable in that mode.

Useful options:

github-repository-report --root=~/workspace --output-dir=~/.github-repository-report --commit-days=30

Each selected local repository is reported after running:

./sheriff.sh

If the repository contains schemathesis.sh, the report also runs:

./schemathesis.sh

If the repository contains run-e2e.sh, the report also runs:

./run-e2e.sh

The report includes the command, exit code, standard output, and standard error for each command. If schemathesis.sh or run-e2e.sh is not found, the report records that it was skipped. It also includes commits from the last 14 days by default, with each commit's short hash, timestamp, author name, subject, and counts for files added, deleted, and changed. Commit hashes link to GitHub, subjects are limited to 50 characters in the table, and the commits section summarizes commit counts by GitHub user. Use --commit-days to choose a different number of days.

If a repository is provided directly without a discovered local path, the report records that the command was not executed and that commits are unavailable.

Reports are written to:

~/.github-repository-report/<owner>/<repository>/<owner>_<repository>_<timestamp>.md

Development

python3 -m unittest discover -s . -p 'test_*.py'
npm pack --dry-run

Publish

npm run publish:npm -- --dry-run
npm run publish:npm

Metadata

Release files for github-repository-report 0.0.2

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

Source distribution (sdist)

Source distribution for github-repository-report 0.0.2
File Size Uploaded
github_repository_report-0.0.2.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for github-repository-report 0.0.2
File Interpreter ABI Platform
github_repository_report-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / github_repository_report-0.0.2.tar.gz

Download URL github_repository_report-0.0.2.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
014fe69248b285cb67b13359ae8d2c26cea557c72e508a202cafe8167c3d43a2
BLAKE2b-256 checksum
How to use checksums
f2cb123749bb33cb20b9c07eca891813f8537dba7c464ea3ea15aa9950a0a5c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / github_repository_report-0.0.2-py3-none-any.whl

Download URL github_repository_report-0.0.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db3fe972b1d606cc265af81d41e1566867e938bbfcad587220310b55bb862e73
BLAKE2b-256 checksum
How to use checksums
c167e376128e05f1871e54876cd29055c6c8028faa0ff1b04ec5e6b9c4cf6edf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.0.3

2 release files

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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