summaryrefslogtreecommitdiff
path: root/scripts/git-release-notes.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-release-notes.py')
-rwxr-xr-xscripts/git-release-notes.py5
1 files changed, 4 insertions, 1 deletions
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) + ')'