mirror of https://github.com/openspug/spug
U 常规发布默认展示最近30次commit记录
parent
088e0ba7cd
commit
1c9713c873
|
@ -27,7 +27,7 @@ class Git:
|
||||||
for ref in self.repo.references:
|
for ref in self.repo.references:
|
||||||
if isinstance(ref, RemoteReference):
|
if isinstance(ref, RemoteReference):
|
||||||
if ref.remote_head != 'HEAD':
|
if ref.remote_head != 'HEAD':
|
||||||
branches[ref.remote_head] = self._get_commits(f'origin/{ref.remote_head}')
|
branches[ref.remote_head] = self._get_commits(f'origin/{ref.remote_head}', 30)
|
||||||
elif isinstance(ref, TagReference):
|
elif isinstance(ref, TagReference):
|
||||||
tags[ref.name] = {
|
tags[ref.name] = {
|
||||||
'id': ref.tag.hexsha,
|
'id': ref.tag.hexsha,
|
||||||
|
|
Loading…
Reference in New Issue