Skip to content

Git Commit Reader#46

Open
mariugul wants to merge 4 commits intomainfrom
feat/git-commit-reader
Open

Git Commit Reader#46
mariugul wants to merge 4 commits intomainfrom
feat/git-commit-reader

Conversation

@mariugul
Copy link
Copy Markdown
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
@mariugul mariugul force-pushed the feat/git-commit-reader branch from c0ec998 to 862e212 Compare September 22, 2024 23:37
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.
@mariugul mariugul force-pushed the feat/git-commit-reader branch from 862e212 to c9c3f9f Compare September 22, 2024 23:45
Wrote tests creating actual git repos with commits and testing
the commit reader methods.
@mariugul mariugul force-pushed the feat/git-commit-reader branch from c9c3f9f to f654374 Compare September 22, 2024 23:48
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