Skip to content

Commit 112e3da

Browse files
authored
fix(index.js): fix webhook
1 parent a557dd7 commit 112e3da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webhook/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ handler.on('push', (event) => {
152152
removed = [...removed].filter(e => e.startsWith('docs') && e.endsWith('md'));
153153
modified = [...modified].filter(e => e.startsWith('docs') && e.endsWith('md'));
154154

155+
removed.forEach((file, index) => removed[index] = file.replace('docs/', ''));
156+
modified.forEach((file, index) => modified[index] = file.replace('docs/', ''));
157+
155158
updateContent(modified, removed);
156159
});
157160
});
@@ -165,4 +168,4 @@ function init() {
165168
updateContent(modified, []);
166169
}
167170

168-
init();
171+
init();

0 commit comments

Comments
 (0)