ci: use Gitea API for releases #2

Closed
adrianbonpin wants to merge 56 commits from feat/ismis-helper into prod
Showing only changes of commit d12a7da646 - Show all commits
+2
View File
@@ -77,6 +77,7 @@
body: body.toString(), body: body.toString(),
credentials: 'same-origin' credentials: 'same-origin'
}); });
if (!resp.ok) throw new Error('Offered courses request failed: ' + resp.status);
const html = await resp.text(); const html = await resp.text();
const courses = ISMIStools.parseOfferedCourses(html); const courses = ISMIStools.parseOfferedCourses(html);
const match = courses.find((c) => c.courseCode === courseCode); const match = courses.find((c) => c.courseCode === courseCode);
@@ -115,6 +116,7 @@
let header = {}; let header = {};
try { try {
const resp = await fetch('/Manage/Student', { credentials: 'same-origin' }); const resp = await fetch('/Manage/Student', { credentials: 'same-origin' });
if (!resp.ok) throw new Error('Profile request failed: ' + resp.status);
const html = await resp.text(); const html = await resp.text();
header = ISMIStools.parseProfilePage(html); header = ISMIStools.parseProfilePage(html);
} catch (e) { } catch (e) {