feat: only warn repo undetected inside non-tty

This commit is contained in:
Geoffroy Empain 2021-02-18 16:16:58 +01:00
parent c616d2eb46
commit 1b91ee6c31

View File

@ -13,12 +13,12 @@ export async function setCommitStatus(data: UploadResponse, release?: string): P
const repoId = getRepoId();
if (!repoId) {
logger.warn('Repo id not detected, cannot set commit status');
logger[process.stdout.isTTY ? 'debug' : 'warn']('Repo id not detected, cannot set commit status');
return;
}
if (!commitHash) {
logger.warn('Commit hash not detected, cannot set commit status');
logger[process.stdout.isTTY ? 'debug' : 'warn']('Commit hash not detected, cannot set commit status');
return;
}