Skip to content

Commit

Permalink
- Experiments.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jun 25, 2024
1 parent b2c6b35 commit cfc1734
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/release_notes/factory/record_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,15 @@ def generate(issues: list[Issue], pulls: list[PullRequest], commits: list[Commit
records[pull.number].register_pull_request(pull)
logging.debug(f"Created record for PR {pull.number}: {pull.title}")

logging.debug(f"XXX Received {len(issues)} issues, {len(pulls)} PRs and {len(commits)} commits.")
detected_PRs = 0
for commit in commits:
for pull in pulls:
if commit.sha in pull.merge_commit_sha:
logging.debug("Commit SHA found in Pull merge commit SHA for PR {pull.number}.")
detected_PRs += 1
logging.debug(f"XXX Commit SHA found in Pull merge commit SHA for PR {pull.number}.")
# Je to jedna k jedne?
logging.debug(f"XXX Detected PRs from commits: {detected_PRs}")

logging.info(f"Generated {len(records)} records from {len(issues)} issues and {len(pulls)} PRs.")
return records

0 comments on commit cfc1734

Please sign in to comment.