(github-badge) format tab => space

pull/312/head
amio 2019-08-21 22:32:31 +08:00
rodzic bd4483cb83
commit b1fc06cbc0
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -113,13 +113,13 @@ const statesColor = {
function combineState (states: Array<any>) {
if (states.length === 0) return 'unknown'
if (states.find(x => x.state === 'error')) return 'error'
if (states.find(x => x.state === 'failure')) return 'failure'
if (states.find(x => x.state === 'pending')) return 'pending'
if (states.every(x => x.state === 'success')) return 'success'
if (states.find(x => x.state === 'error')) return 'error'
if (states.find(x => x.state === 'failure')) return 'failure'
if (states.find(x => x.state === 'pending')) return 'pending'
if (states.every(x => x.state === 'success')) return 'success'
// this shouldn't happen, but in case it happens
throw new Error(`Unknown states: ${states.map(x => x.state).join()}`)
// this shouldn't happen, but in case it happens
throw new Error(`Unknown states: ${states.map(x => x.state).join()}`)
}
async function status ({ owner, repo, ref = 'master', context }: Args) {