Skip to content

Commit 8caa68c

Browse files
authored
Update topic-commenter.yml
Signed-off-by: Justin Kenyon <[email protected]>
1 parent 2a33d43 commit 8caa68c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/topic-commenter.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ jobs:
3232
for (const file of files) {
3333
if (file.filename.startsWith('topics/')) {
3434
const parts = file.filename.split('/');
35-
const fileName = parts[parts.length - 1];
36-
const topic = fileName.split('.')[0]; // Remove any file extension
37-
topics.push(topic);
35+
const topicName = parts[parts.length - 2];
36+
topics.push(topicName);
3837
}
3938
}
4039

0 commit comments

Comments
 (0)