Add instructions for github-cli installation

This commit is contained in:
Mikhail f. Shiryaev 2022-08-03 13:40:31 +02:00
parent 08474cf869
commit 62a05dc10d
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -96,10 +96,17 @@ class Release:
def check_prerequisites(self):
"""
Check tooling installed in the system
Check tooling installed in the system, `git` is checked by Git() init
"""
self.run("gh auth status")
self.run("git status")
try:
self.run("gh auth status")
except subprocess.SubprocessError:
logging.error(
"The github-cli either not installed or not setup, please follow "
"the instructions on https://github.com/cli/cli#installation and "
"https://cli.github.com/manual/"
)
raise
def do(self, check_dirty: bool, check_branch: bool, with_release_branch: bool):
self.check_prerequisites()