Add check_prerequisites to release.py

This commit is contained in:
vdimir 2022-02-25 10:53:21 +00:00
parent 1e1f1081f6
commit ef3cbdcf6a
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -78,7 +78,15 @@ class Release:
self._git.update()
self.version = get_version_from_repo()
def check_prerequisites(self):
"""
Check tooling installed in the system
"""
self.run("gh auth status")
self.run("git status")
def do(self, check_dirty: bool, check_branch: bool, with_prestable: bool):
self.check_prerequisites()
if check_dirty:
logging.info("Checking if repo is clean")