Skip to content
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

Git Commit Reader #46

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Git Commit Reader #46

wants to merge 4 commits into from

Conversation

mariugul
Copy link
Owner

@mariugul mariugul commented Sep 22, 2024

Commit Reader

PR Description: Implement Commit Reader and Improve Commit Parsing
This PR introduces several enhancements and new features focused on reading and parsing Git commits more effectively:

Key Changes:
Refactor parse_commit_message():

The parse_commit_message() method has been refactored to improve commit parsing. It now breaks down a commit message into SUMMARY, BODY, and FOOTER components, providing better structure and readability.
New Commit Reader (commit_reader.py):

A new module commit_reader.py has been added, which includes methods to read commits directly from a Git repository. This allows for more flexible and automated commit retrieval for further processing.
Unit Tests for Commit Reader:

Unit tests have been written to ensure the functionality of the commit reader. These tests create actual Git repositories with commits, validating that the commit reader works as expected in real-world scenarios.
Documentation:

Comprehensive documentation has been added for the new commit reader, detailing its usage and the new commit parsing logic.
Benefits:
Enhanced commit parsing logic provides more structured commit data for further analysis.
The new commit reader improves automation by allowing Git commits to be read directly from repositories.
Extensive unit testing ensures the robustness and reliability of the new features.
This PR refines the system for working with Git commits, laying the foundation for future improvements.

Closing #45

@mariugul mariugul self-assigned this Sep 22, 2024
@mariugul mariugul linked an issue Sep 22, 2024 that may be closed by this pull request
3 tasks
Uses the new implementation of the parse_commit_message()
method which implements parsing a commit into
SUMMARY, BODY and FOOTER.
Created commit_reader.py which has methods to
read commits from a git repo.
Wrote tests creating actual git repos with commits and testing
the commit reader methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Add Git Commit Reader
1 participant