feat: only warn repo undetected inside non-tty
This commit is contained in:
parent
c616d2eb46
commit
1b91ee6c31
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue