2 import os, fnmatch, subprocess
4 starttag = 'v18.10-rc0'
9 for root, dirnames, filenames in os.walk('.'):
10 for filename in fnmatch.filter(filenames, '*.api'):
11 apifiles.append(os.path.join(root, filename))
14 commits = subprocess.check_output(['git', 'log',
15 '--oneline', starttag + '..' + endtag,
21 print "| @c %s ||" % f
22 print "| ------- | ------- |"
23 for line in commits.splitlines():
24 parts = line.strip().split()
26 message = " ".join(parts[1:]).replace("|", "\|")
27 print "| [%s](https://gerrit.fd.io/r/gitweb?" \
28 "p=vpp.git;a=commit;h=%s) | %s |" % (
29 commit, commit, message)