Skip to content

Commit

Permalink
skip merge commits (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
sambles committed Nov 27, 2024
1 parent ef95560 commit 0b2ceda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def _get_commit_refs(self, repo_url, local_path, from_tag, to_tag):
self.logger.info("Fetching commits between tags {}...{} ".format(from_tag, to_tag))

if local_path:
repo = RepositoryMining(local_path, from_tag=from_tag, to_tag=to_tag)
repo = RepositoryMining(local_path, from_tag=from_tag, to_tag=to_tag, only_no_merge=True)
else:
repo = RepositoryMining(repo_url, from_tag=from_tag, to_tag=to_tag)
repo = RepositoryMining(repo_url, from_tag=from_tag, to_tag=to_tag, only_no_merge=True)

commit_titles = [commit.msg.split('\n\n')[0] for commit in repo.traverse_commits()]
commit_list = [re.findall(r'#\d+', title) for title in commit_titles]
Expand Down

0 comments on commit 0b2ceda

Please sign in to comment.