diff --git a/devtools/changelog.py b/devtools/changelog.py index 73a6512ec3da..90101c892f36 100755 --- a/devtools/changelog.py +++ b/devtools/changelog.py @@ -25,7 +25,6 @@ Entry = namedtuple("Entry", ["commit", "pullreq", "content", "section"]) Link = namedtuple("Link", ["ref", "content", "url"]) - def git(cmd): cmd = shlex.split(cmd) out = subprocess.check_output(['git'] + cmd) @@ -81,14 +80,14 @@ def get_log_entries(commitrange): def linkify(entries): - links = [] + links = {} for e in entries: - links.append(Link( + links[e.pullreq] = (Link( ref='#{}'.format(e.pullreq), content=e.content, url="https://github.com/ElementsProject/lightning/pull/{}".format(e.pullreq) )) - return list(set(links)) + return list(set(links.values())) def group(entries):