Skip to content

Commit ebbdecb

Browse files
authored
Update index.js
1 parent f125ae7 commit ebbdecb

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/index.js

+3-11
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Toolkit.run(
7070
// Add one since the content needs to be inserted just after the initial comment
7171
startIdx++;
7272
content.forEach((line, idx) =>
73-
readmeContent.splice(startIdx + idx, 0, `* ${line}`)
73+
readmeContent.splice(startIdx + idx, 0, `${line}`)
7474
);
7575

7676
// Append <!--RECENT_ACTIVITY:end--> comment
@@ -94,15 +94,7 @@ Toolkit.run(
9494
}
9595
tools.exit.success("Wrote to README");
9696
}
97-
98-
// const oldContent = readmeContent.slice(startIdx + 1, endIdx).join("\n");
99-
// const newContent = content
100-
// .map((line, idx) => `${idx + 1}. ${line}`)
101-
// .join("\n");
102-
103-
// // if (oldContent.trim() === newContent.trim())
104-
// // tools.exit.success("No changes detected.");
105-
97+
10698
startIdx++;
10799

108100
// Recent GitHub Activity content between the comments
@@ -116,7 +108,7 @@ Toolkit.run(
116108
if (!line) {
117109
return true;
118110
}
119-
readmeContent.splice(startIdx + idx, 0, `* ${line}`);
111+
readmeContent.splice(startIdx + idx, 0, `${line}`);
120112
});
121113
readmeContent = appendDate(readmeContent);
122114
tools.log.success("Updated README with the recent activity");

0 commit comments

Comments
 (0)