Skip to content

Commit 457c422

Browse files
chore: change comment
1 parent eac1de7 commit 457c422

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@ Toolkit.run(
9494
const readmeContent = fs.readFileSync('./README.md', 'utf-8').split('\n')
9595

9696
let startIdx = readmeContent.findIndex(
97-
(content) => content === '<!--START-->'
97+
(content) => content === '<!--START_SECTION:activity-->'
9898
)
9999
if (
100-
readmeContent.includes('<!--START-->') &&
101-
!readmeContent.includes('<!--END-->')
100+
readmeContent.includes('<!--START_SECTION:activity-->') &&
101+
!readmeContent.includes('<!--END_SECTION:activity-->')
102102
) {
103103
startIdx++
104104
content.forEach((line, idx) =>
105105
readmeContent.splice(startIdx + idx, 0, `${idx + 1}. ${line}`)
106106
)
107-
readmeContent.splice(startIdx + content.length, 0, '<!--END-->')
107+
readmeContent.splice(startIdx + content.length, 0, '<!--END_SECTION:activity-->')
108108
fs.writeFileSync('./README.md', readmeContent.join('\n'))
109109
try {
110110
await commitFile()
@@ -116,7 +116,7 @@ Toolkit.run(
116116
}
117117

118118
const endIdx = readmeContent.findIndex(
119-
(content) => content === '<!--END-->'
119+
(content) => content === '<!--END_SECTION:activity-->'
120120
)
121121
const oldContent = readmeContent.slice(startIdx + 1, endIdx).join('\n')
122122
console.log()

0 commit comments

Comments
 (0)