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 --docker-compose-profile=development

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. The required --docker-compose-profile value is passed to the Sheriff repository check.

Generate a report for a specific discovered local repository:

github-repository-report --organization=kaizten --repository=tools --docker-compose-profile=development

The command scans --root and automatically selects the matching local checkout.

Useful options:

github-repository-report --docker-compose-profile=development --root=~/workspace --output-dir=~/.github-repository-report --commit-days=30

Each selected local repository is reported after running:

./sheriff.sh

The report includes another Sheriff section after running the repository check with the requested Docker Compose profile:

./sheriff.sh repository --docker-compose-profile development

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.

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.3

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.3
File Size Uploaded
github_repository_report-0.0.3.tar.gz 11.5 kB Details

Built distribution (wheel)

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

Total release size: 20.0 kB

Release files / github_repository_report-0.0.3.tar.gz

Download URL github_repository_report-0.0.3.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02c5d15c1befc135f085b57aeb1dd4f4b939fc0d33d9647bd11b028e5d6921ae
BLAKE2b-256 checksum
How to use checksums
706cd825aad3e04b813177f896b782d8b0ebf4c19e0da759fa2b2d2d741d6bf4
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.3-py3-none-any.whl

Download URL github_repository_report-0.0.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d22993ff7f7f743ae5b9fd40c6f56de2bc1c066cdcf27173bd7bbff1e3ec9b
BLAKE2b-256 checksum
How to use checksums
eb692dfc4284b36e0d2fb2d864e37488a51c392caabd00263a638675f883c4f9
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

This release

0.0.3 This release

2 release files

0.0.2

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