From b19ba3373afabde0514a84ada2dca3806ab2608c Mon Sep 17 00:00:00 2001 From: Daniel Lindsley Date: Thu, 2 Jan 2014 11:24:15 -0800 Subject: Fixed to no longer duplicate issues in release notes. --- scripts/git-release-notes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/git-release-notes.py') diff --git a/scripts/git-release-notes.py b/scripts/git-release-notes.py index 5e4c3acb..3079f845 100755 --- a/scripts/git-release-notes.py +++ b/scripts/git-release-notes.py @@ -51,8 +51,11 @@ removals = [ changes = '' for commit, message in commit_list: append = [] + issues = set() for issue in ISSUE.findall(message): - append.append(':issue:`{issue}`'.format(issue=issue)) + if issue not in issues: + append.append(':issue:`{issue}`'.format(issue=issue)) + issues.add(issue) append.append(':sha:`{commit}`'.format(commit=commit)) append = ' (' + ', '.join(append) + ')' -- cgit v1.2.1