Skip to content

Commit 5af6ebe

Browse files
authored
use more lenient matching
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent d42745d commit 5af6ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/report-inactive-collaborators.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function parseCollaborators() {
2121
const lines = content.split('\n');
2222
const collaborators = [];
2323

24-
const startIndex = lines.indexOf(CONFIG.CURRENT_MEMBERS_HEADER) + 1;
24+
const startIndex = lines.findIndex(l => l.startsWith(CONFIG.CURRENT_MEMBERS_HEADER)) + 1;
2525
if (startIndex <= 0) return collaborators;
2626

2727
for (let i = startIndex; i < lines.length; i++) {

0 commit comments

Comments
 (0)