Skip to content

Commit

Permalink
chore: update color swatches
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwozdz committed Feb 17, 2024
1 parent 483684b commit f934d46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/format-branch-coverage-changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ writeFileSync('ci/branch-coverage-changes.md', aligned, 'utf8');

function getValue(input) {
if (input.pct === 100) {
return `${input.pct} ![green-square](https://gist.github.com/assets/4369192/f3ff4302-cb95-4ca7-9ac7-1fb22c26c1bd)`;
return `${input.pct} ![green](https://github.com/koopjs/koop/assets/4369192/fd82d4b7-7f6e-448c-a56c-82ac6781a629)`;
}

if (input.pct > 90) {
return `${input.pct} ![light-green-square](https://gist.github.com/assets/4369192/e7990dd0-5e8f-4ce9-95a9-b54abe212ec5)`;
return `${input.pct} ![yellow-green](https://github.com/koopjs/koop/assets/4369192/683b2df8-7379-4e4f-bb36-f5e20b2631d6)`;
}

if (input.pct > 80) {
return `${input.pct} ![yellow-square](https://gist.github.com/assets/4369192/855f8c5d-87c8-4799-8ad2-e7625de623c1)`;
return `${input.pct} ![yellow](https://github.com/koopjs/koop/assets/4369192/d5214a5c-c5a9-4449-82ca-8a4e922ef9ef)`;
}

if (input.pct > 70) {
return `${input.pct} ![orange-square](https://gist.github.com/assets/4369192/a1950b93-2160-4455-9fb4-3929a548315e)`;
return `${input.pct} ![orange](https://github.com/koopjs/koop/assets/4369192/8651f10c-e986-491d-8b51-bc559aac88a2)`;
}

return `${input.pct} ![red-square](https://gist.github.com/assets/4369192/3226020e-d9f6-46a3-8c6d-ec7ab32b3670)`;
return `${input.pct} ![red](https://github.com/koopjs/koop/assets/4369192/83e9c13e-0548-4b97-a116-6e49f77a8f38)`;
}

0 comments on commit f934d46

Please sign in to comment.