Get GitHub's release notes or commit history and format it into `reStructuredText`/`Markdown` documents.
Project description
GitVerse
Get GitHub's release notes or commit history and format it into reStructuredText/Markdown documents.
Installation
pip install gitverse
Usage
Release Notes (Tags)
Generate release notes from releases tagged in GitHub
gitverse-release
Tries to get release notes, using GitHub API
If failed, uses the commit message as notes for the associated release
This feature optionally takesGIT_TOKENas an environment variable if it is generated for a personal repo
Known issue related to the order of release notes
- There is a known issue with GitHub where the
git tagcommand returns incorrect timestamp (when tags are created in different timezones) - If the release notes are not generated in the expected order, please run the following command to verify
git for-each-ref --sort='-creatordate' --format '%(refname:short) %(creatordate:iso8601)' refs/tags
- If the output is in expected order, please raise an issue
Commit History
Generate commit history from git log
gitverse-commit
Options
debug- Enable debug mode for logging.reverse- Generate commit history/release notes in reverse order.
Flags
-bGather commit notes specific to a branch. UsesDefault branchif not passed. (Only forgitverse-commit)-fWrite the commit notes to a custom filename.-tTitle or index line for the file generated.
Sample
Linting
PreCommit will ensure linting, and the doc creation are run on every commit.
Requirement
pip install sphinx==5.1.1 pre-commit==2.20.0 recommonmark==0.7.1
Usage
pre-commit run --all-files
Pypi Package
https://pypi.org/project/gitverse/
Runbook
https://thevickypedia.github.io/gitverse/
License & copyright
© Vignesh Rao, GitVerse
Licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitverse-3.3-py3-none-any.whl.
File metadata
- Download URL: gitverse-3.3-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
751de4059e986ce57ea639b4f3616be61c3bad6d4992bf662b0901268c608721
|
|
| MD5 |
19f1b76c5602952b409abbb3cc86b407
|
|
| BLAKE2b-256 |
e0f9bde1e560ec87ee9c6ecaac848fbd673f1cbb0f7d665dc1c2d6a3eed8a192
|