You've already forked dynamic-badges-action
🔧 Improved messages for color range feature
This commit is contained in:
2
index.js
2
index.js
@@ -45,7 +45,7 @@ try {
|
|||||||
content.message = val + " / " + max + " " + content.message
|
content.message = val + " / " + max + " " + content.message
|
||||||
} else {
|
} else {
|
||||||
hue = Math.floor((max - val) / (max - min) * 100);
|
hue = Math.floor((max - val) / (max - min) * 100);
|
||||||
content.message = val + " " + content.message
|
content.message = valColorRange + " " + content.message
|
||||||
}
|
}
|
||||||
content.color = "hsl(" + hue + ", 100%, 50%)";
|
content.color = "hsl(" + hue + ", 100%, 50%)";
|
||||||
} else if (color != '') {
|
} else if (color != '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user