Implement tag_annotated and bugfix
This commit is contained in:
parent
03f8507968
commit
a07c23434e
1 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,8 @@ class GitRepository():
|
||||||
return inst
|
return inst
|
||||||
|
|
||||||
def get_latest_commit(self):
|
def get_latest_commit(self):
|
||||||
self.latest_commit = self.system_repository.run_checked('git', 'log', '--oneline', '--format="%s %b"', '-n' + '1')
|
self.system_repository.run_checked('git', 'log', '--oneline', '--format="%s %b"', '-n' + '1')
|
||||||
|
self.latest_commit = self.system_repository.stdout
|
||||||
|
|
||||||
def get_release_type_from_latest_commit(self):
|
def get_release_type_from_latest_commit(self):
|
||||||
if self.latest_commit is None:
|
if self.latest_commit is None:
|
||||||
|
@ -34,6 +35,9 @@ class GitRepository():
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def tag_annotated(self, annotation: str, message: str):
|
||||||
|
self.system_repository.run_checked('git', 'tag', '-a', annotation, '-m', message)
|
||||||
|
|
||||||
def get_current_branch(self):
|
def get_current_branch(self):
|
||||||
self.system_repository.run_checked('git', 'branch', '--show-current')
|
self.system_repository.run_checked('git', 'branch', '--show-current')
|
||||||
|
|
||||||
|
@ -48,4 +52,3 @@ class GitRepository():
|
||||||
|
|
||||||
def checkout(self, branch: str):
|
def checkout(self, branch: str):
|
||||||
self.system_repository.run_checked('git', 'checkout', branch)
|
self.system_repository.run_checked('git', 'checkout', branch)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue