Implement manifest header and improve GitHelper

This commit is contained in:
Ayaz Salikhov
2021-04-25 12:19:10 +03:00
parent f52987a959
commit 0b16bd5dc0
5 changed files with 45 additions and 20 deletions

View File

@@ -9,6 +9,10 @@ class GitHelper:
def commit_hash():
return git["rev-parse", "HEAD"]().strip()
@staticmethod
def commit_hash_tag():
return GitHelper.commit_hash()[:12]
@staticmethod
def commit_message():
return git["log", -1, "--pretty=%B"]().strip()