Skip to content

Add example for release analytics features #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wdm0006
Copy link
Owner

@wdm0006 wdm0006 commented May 20, 2025

This commit introduces a new example script examples/release_analytics.py. The script demonstrates how to use the release_tag_summary() method from gitpandas.Repository to get a summary of changes between release tags. This includes diff statistics (insertions, deletions, net changes), files changed, and contributors involved between consecutive tags.

The example also briefly shows how get_commit_content() can be used to inspect the actual content of a specific commit, such as one a tag points to.

Additionally, the new example has been added to the test suite in tests/test_examples.py to ensure it runs without errors.

Fixes #

Proposed Changes

This commit introduces a new example script `examples/release_analytics.py`.
The script demonstrates how to use the `release_tag_summary()` method
from `gitpandas.Repository` to get a summary of changes between release
tags. This includes diff statistics (insertions, deletions, net changes),
files changed, and contributors involved between consecutive tags.

The example also briefly shows how `get_commit_content()` can be used to
inspect the actual content of a specific commit, such as one a tag points to.

Additionally, the new example has been added to the test suite in
`tests/test_examples.py` to ensure it runs without errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant