Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…D_Status into 0.7.x
  • Loading branch information
cp2004 committed Mar 27, 2021
2 parents 91751e6 + ed10e4f commit cbe84de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/issue-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ jobs:
case 'edited': {
if (context.payload.issue.title.match(/\[request\]|feature request/i)) {
labels.push('request');
if (!labels.includes("solved")) {
labels.push('needs review');
setLabels = true;
}
if (labels.includes("incomplete")){
// Remove incomplete label
const index = labels.indexOf("incomplete");
if (index > -1) {
labels.splice(index, 1);
}
// Remove needs triage
const index = labels.indexOf("needs triage");
if (index > -1) {
labels.splice(index, 1);
}
}
}
if (context.payload.issue.title.match(/bug/i)) {
if (!labels.includes("confirmed bug")){
labels.push('potential bug');
labels.push('needs review');
setLabels = true;
}
if (labels.includes("incomplete")){
Expand All @@ -44,6 +44,11 @@ jobs:
labels.splice(index, 1);
}
}
// Remove needs triage
const index = labels.indexOf("needs triage");
if (index > -1) {
labels.splice(index, 1);
}
}
if (labels.length === 0) {
labels.push('needs triage');
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Add some RGB LEDs to your 3D printer for a quick status update!

![GitHub issues](https://img.shields.io/github/issues/cp2004/OctoPrint-WS281x_LED_Status?style=flat-square)
![GitHub branch checks state](https://img.shields.io/github/checks-status/cp2004/OctoPrint-WS281x_LED_STATUS/0.7.x?style=flat-square)
![GitHub release (latest by date)](https://img.shields.io/github/downloads/cp2004/OctoPrint-WS281x_LED_Status/latest/total?label=New%20installs%40latest&style=flat-square)
![GitHub Repo stars](https://img.shields.io/github/stars/cp2004/OctoPrint-WS281x_LED_Status?style=flat-square)
![GitHub](https://img.shields.io/github/license/cp2004/OctoPrint-WS281x_LED_Status?style=flat-square)
![GitHub Sponsors](https://img.shields.io/github/sponsors/cp2004?style=flat-square)

![rainbow effect](/assets/rainbow.gif)

A highly configurable plugin for supporting WS2811, WS2812 and SK6812 LEDs attached to your Raspberry Pi.
Expand Down

0 comments on commit cbe84de

Please sign in to comment.