Skip to content

Commit

Permalink
feat: import repos and branches from anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdlangton committed Nov 24, 2024
1 parent 8cb9ca4 commit 4a70177
Show file tree
Hide file tree
Showing 2 changed files with 388 additions and 51 deletions.
8 changes: 7 additions & 1 deletion functions/api/github/repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ export async function onRequestGet(context) {
}
}

return Response.json({ githubApps, gitRepos })
return Response.json({
githubApps, gitRepos: gitRepos.map(r => {
r.orgId = r.org.connect.uuid
delete r.org
return r
})
})
}
const store = async (prisma, session, repo) => {
const create = {
Expand Down
Loading

0 comments on commit 4a70177

Please sign in to comment.