You've already forked dynamic-badges-action
✨ Apply clang format
This commit is contained in:
3
.clang-format
Normal file
3
.clang-format
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
BasedOnStyle: Google
|
||||||
|
AlignConsecutiveAssignments: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||||
11
index.js
11
index.js
@@ -19,7 +19,6 @@ try {
|
|||||||
const style = core.getInput('style');
|
const style = core.getInput('style');
|
||||||
const cacheSeconds = core.getInput('cacheSeconds');
|
const cacheSeconds = core.getInput('cacheSeconds');
|
||||||
|
|
||||||
|
|
||||||
if (labelColor != '') {
|
if (labelColor != '') {
|
||||||
description.labelColor = labelColor;
|
description.labelColor = labelColor;
|
||||||
}
|
}
|
||||||
@@ -80,14 +79,8 @@ try {
|
|||||||
},
|
},
|
||||||
res => {
|
res => {
|
||||||
let body = '';
|
let body = '';
|
||||||
|
res.on('data', data => body += data);
|
||||||
res.on('data', data => {
|
res.on('end', () => console.log('result:' + body));
|
||||||
body += data;
|
|
||||||
});
|
|
||||||
|
|
||||||
res.on('end', () => {
|
|
||||||
console.log('result:' + body);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
req.write(data);
|
req.write(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user