Commit Graph

40 Commits

Author SHA1 Message Date
Simon Schneegans
e7fa53f37a 🪲 Fix check of previous content 2023-10-07 20:21:16 +02:00
Simon Schneegans
5ab7837fab Format with prettier 2023-10-07 19:31:13 +02:00
Simon Schneegans
606d12105c 🎉 Add host parameter 2023-10-07 18:49:27 +02:00
Simon Schneegans
efee8f7380 🪲 Fix JSON format 2023-10-07 18:42:04 +02:00
Rúnar Berg
a2d3829b14 Add save svg-badge directly to gist
This adds the posibility of saving an SVG badge generated by the same
shields.io dirictly to the gist. Instead of prepering a JSON file to
be sent to their service, we use their library directly, which outputs
an SVG file that we can save to the user’s gist.

Filenames ending in `.svg` will use this library automatically.

Additionally there is a major refactoring where the older `node:http`
library has been swapped out for `fetch`.

Also swap from node 16 to node 20

fixes #24
2023-10-05 08:29:45 -07:00
Simon Schneegans
c5926f1df3 📝 Add some comments 2022-10-09 06:27:21 +02:00
Simon Schneegans
8fb0b06275 🔧 Fix input parsing 2022-10-09 06:01:08 +02:00
Simon Schneegans
6e5aa605f7 🔧 Rename updateIfChanged to forceUpdate 2022-10-09 05:48:42 +02:00
Simon Schneegans
a64434e3b0 🔧 Minimize code duplication 2022-10-08 21:29:53 +02:00
Simon Schneegans
9cba6db19f Apply clang-format 2022-10-08 21:23:46 +02:00
Misha Kav
4dbb581c4c 🎉 add ability to update gist only if changed 2022-10-08 20:35:01 +03:00
Wolfgang
b82eb1a788 🪲 Changed ColorRange val type
Using const for val causes the action to fail if it is out of bounds. It can happen in cases were these values are estimated, but not known in advance, such as max number of errors.
2022-04-23 14:20:36 -03:00
Simon Schneegans
e43bdee88e Tweak formatting of the code 2022-04-18 13:14:24 +02:00
Simon Schneegans
3dd7c22d76 Apply clang-format 2022-04-18 13:09:18 +02:00
Wolfgang
6363528813 🎉 Added saturation and lightness parameters
🎉 Added saturation and lightness parameters to ColorRange feature
2022-04-17 11:47:07 -03:00
Wolfgang
f3547450fa Update index.js
Reduce the lightness from 50% to 40%.
2022-04-17 11:22:56 -03:00
Wolfgang
6d79bf4c0a Update index.js
Removed automatically set message.

Co-authored-by: Simon Schneegans <code@simonschneegans.de>
2022-04-17 11:16:41 -03:00
Wolfgang
b718050283 Apply suggestions from code review
Co-authored-by: Simon Schneegans <code@simonschneegans.de>
2022-04-16 10:51:12 -03:00
LucasWolfgang
0ba52741d3 🔧 Improved messages for color range feature 2022-04-16 02:05:36 -03:00
LucasWolfgang
a690d6b4cb 🪲 Fixed empty message bug in range feature
Fixed by adding back 'console.' which was removed for testing
2022-04-16 01:47:26 -03:00
LucasWolfgang
517bd6931a 🎉 Added more functionalities to color range
Now the Range can be inverted and doesn't use the message anymore
2022-04-15 23:55:40 -03:00
LucasWolfgang
3bcfbf7edc 🎉 Added range based message coloring 2022-04-15 13:11:20 -03:00
Simon Schneegans
cfd1eebb35 🔧 Do not print result body 2022-03-26 10:50:40 +01:00
Andries Smit
a96c4be21f Update index.js
Fail when not successfull
2021-02-16 15:59:36 +01:00
Simon Schneegans
3798bc2730 📝 Add some comments 2020-08-15 21:00:33 +02:00
Simon Schneegans
1b02acd6ac 🔧 Use ES6 to create data object 2020-08-15 20:53:49 +02:00
Simon Schneegans
87f2cd9c28 Apply clang format 2020-08-15 20:51:58 +02:00
Simon Schneegans
1e34d09cdf 🔧 Use camel case 2020-08-15 20:46:27 +02:00
Simon Schneegans
fc0154a050 🪲 Fix label color 2020-08-15 13:59:15 +02:00
Simon Schneegans
7f18a96ade 🔧 Handle optional parameters 2020-08-15 13:40:04 +02:00
Simon Schneegans
4f16dd260f 🔧 Add user agent 2020-08-15 13:35:31 +02:00
Simon Schneegans
096cda2b1e 🔧 Test once more... 2020-08-15 13:32:11 +02:00
Simon Schneegans
d5c3a8eb60 🔧 Tweak code 2020-08-15 13:30:05 +02:00
Simon Schneegans
a36c44cc09 🔧 Some formatting 2020-08-15 13:25:03 +02:00
Simon Schneegans
294e38a462 🔧 Send headers 2020-08-15 12:54:49 +02:00
Simon Schneegans
cf5a7526b6 🔧 Send patch request 2020-08-15 12:48:07 +02:00
Simon Schneegans
4b90391aa4 🔥 Remove obsolete dependencies 2020-08-15 12:40:48 +02:00
Simon Schneegans
e197b4ecc4 🪲 Fix assignment 2020-08-15 12:37:02 +02:00
Simon Schneegans
4e55673296 🔧 Add some initial code 2020-08-15 12:33:06 +02:00
Simon Schneegans
ed18a71a87 🎉 Initial commit 2020-08-15 12:02:21 +02:00