Skip to content

Commit

Permalink
- Fixes from manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Oct 1, 2024
1 parent 5cc9c12 commit 81dfaec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion release_notes_generator/model/isolated_commits_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def register_commit(self, commit: Commit) -> bool:
@return: Always return True.
"""
self.__commits[0] = commit
logger.debug("Commit 'type: Isolated' %s registered", commit.sha)
logger.debug("Registering commit 'type: Isolated' %s registered", commit.sha)
return True

def to_chapter_row(self) -> str:
Expand Down
7 changes: 5 additions & 2 deletions release_notes_generator/record/record_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def generate(
RecordFactory.__register_pull_request(github, records, repo, pull)

for commit in commits:
logger.debug("DEBUG count of records is '%s'", len(records))
RecordFactory.__register_commit_to_record(records, repo, commit)
logger.debug("DEBUG count of records is '%s'", len(records))

logger.info(
"Generated %d records from %d issues and %d PRs, with %d commits detected. %d of commits are isolated",
Expand Down Expand Up @@ -137,5 +139,6 @@ def __register_commit_to_record(records: dict[int|str, Record], repo: Repository
if record.register_commit(c):
return

records[c.sha] = IsolatedCommitsRecord(repo)
records[c.sha].register_commit(c)
iso_record = IsolatedCommitsRecord(repo)
iso_record.register_commit(c)
records[c.sha] = iso_record

0 comments on commit 81dfaec

Please sign in to comment.