We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d546a0a commit e52a25aCopy full SHA for e52a25a
changelog.py
@@ -1,3 +1,4 @@
1
+from datetime import datetime
2
from github import Github
3
from pprint import pprint
4
import os
@@ -25,6 +26,8 @@
25
26
shell=True,
27
).decode('utf8').split('\n')
28
29
+now = datetime.now()
30
+
31
tags = {}
32
tag_commits = []
33
for line in git_log:
@@ -43,11 +46,14 @@
43
46
44
47
for sha in shas:
45
48
line = []
- commit = repo.get_commit(sha)
49
author, description = subprocess.check_output(
50
f"git log --format='%an--sep--%B' -n1 {sha}",
51
52
).decode('utf8').split('\n')[0].split('--sep--')
53
+ if description.startswith('Release '):
54
+ lines.append(f' {now.year}-{now.month}-{now.day} {description}')
55
+ continue
56
+ commit = repo.get_commit(sha)
57
pulls = [*commit.get_pulls()]
58
numbers = []
59
users = []
0 commit comments