fix: fix no-auth redirects for discourse SSO

This commit is contained in:
mrjvs
2026-08-12 16:56:34 +02:00
parent 437c48588a
commit ae0b1aaaa1
5 changed files with 14 additions and 8 deletions

View File

@@ -68,11 +68,9 @@ query getProjectsV2($orgName: String!, $cursor: String) {
async function getGitHubProjectsWithItemsV2(octokit: Octokit) {
const projects: Array<{ id: string; title: string; url: string | null; items: Array<{ title: string; column: string }> }> = [];
console.log('Get projects');
const data = await octokit.graphql.paginate(getProjectsWithItemsV2GQL, {
orgName: orgName
});
console.log('Finished get projects');
for (const node of data.organization.projectsV2.nodes) {
projects.push({