Merge pull request #5 from lannonbr/fix-color-hash-bug
Removing # when running app
This commit is contained in:
commit
ec1266042a
4 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
from node:10.14.2-slim
|
||||
|
||||
LABEL version="1.0.0"
|
||||
LABEL version="1.1.0"
|
||||
LABEL repository="https://github/lannonbr/issue-label-manager-action"
|
||||
LABEL maintainer="Benjamin Lannon <benjamin@lannonbr.com>"
|
||||
|
||||
|
|
7
index.js
7
index.js
|
@ -14,6 +14,13 @@ async function run() {
|
|||
let liveLabels = await getCurrentLabels();
|
||||
let newLabels = JSON.parse(fs.readFileSync(newLabelsUrl).toString());
|
||||
|
||||
// If the color of a label has a # sign, remove it
|
||||
newLabels.forEach(newLabel => {
|
||||
if (newLabel.color[0] === "#") {
|
||||
newLabel.color = newLabel.color.slice(1);
|
||||
}
|
||||
});
|
||||
|
||||
let labelModList = diffLabels(liveLabels, newLabels);
|
||||
|
||||
labelModList.forEach(async mod => {
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "issue-label-action",
|
||||
"version": "1.0.0",
|
||||
"name": "issue-label-manager-action",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "issue-label-manager-action",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"description": "Will update repo's labels based on data in JSON file located at $REPO/.github/labels.json",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue