ci: use Gitea API for releases #2

Closed
adrianbonpin wants to merge 56 commits from feat/ismis-helper into prod
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 544d4aab1a - Show all commits
+1 -1
View File
@@ -76,7 +76,7 @@
return extractRows(html)
.filter((tds) => tds.length >= 2)
.map((tds) => ({
courseCode: tds[0].split('-')[0].trim(),
courseCode: tds[0].replace(/\s*-\s*Group\s*\d+$/i, '').trim(),
description: tds[1]
}));
}
+2
View File
@@ -70,4 +70,6 @@ test('parseOfferedCourses extracts course code and description', () => {
test('parseOfferedCourses strips group suffix from code', () => {
const courses = parseOfferedCourses(offeredFixture);
assert.ok(courses.every(c => !/Group/.test(c.courseCode)));
const it3206n = courses.find(c => c.courseCode === 'IT 3206N');
assert.ok(it3206n, 'should find IT 3206N');
});