We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cb5b6 commit ab57bccCopy full SHA for ab57bcc
script/commit_message.py
@@ -14,7 +14,11 @@
14
15
def main():
16
17
- cmd = "git log --pretty=format:'%s' master..HEAD"
+ cmd_tag = "git describe --abbrev=0"
18
+ tag = subprocess.check_output(cmd_tag,
19
+ shell=True).decode("utf-8").split('\n')[0]
20
+
21
+ cmd = "git log --pretty=format:'%s' {}..master".format(tag)
22
commits = subprocess.check_output(cmd, shell=True)
23
commits = commits.decode("utf-8").split('\n')
24
for commit in commits:
0 commit comments