We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49846a4 commit a5f8a17Copy full SHA for a5f8a17
bin/github-label-sync.js
@@ -139,8 +139,11 @@ function merge(files) {
139
140
// Make sure leading `#` are stripped from the color property.
141
Object.keys(data).forEach((key) => {
142
- const label = data[key];
143
- label.color = label.color.replace('#', '');
+ const label = data[key];
+ const color = String(label.color);
144
+ if (color.startsWith('#')) {
145
+ label.color = color.replace('#', '');
146
+ }
147
labels.push(label);
148
});
149
0 commit comments