feat: add read-only GitHub App access alongside OAuth

This commit is contained in:
Thomas Durieux committed 2026-09-09 22:08:12 +02:00
1 parent e5c44845f0
commit a60ad6a921
49 files changed
+1754 -139

No files matched your search

@@ -1,3 +1,4 @@
import { repositoryAccessSchema } from "../repository-access.schema";
import { Schema } from "mongoose";
const AnonymizedRepositorySchema = new Schema({
@@ -31,6 +32,7 @@ const AnonymizedRepositorySchema = new Schema({
addedAt: { type: Date, default: Date.now },
},
],
githubAccess: { type: repositoryAccessSchema, default: undefined },
conference: String,
source: {
type: { type: String },
@@ -1,3 +1,4 @@
import { RepositoryAccess } from "../../repository-access.types";
import { Document, Model } from "mongoose";
import { RepositoryStatus } from "../../types";
@@ -20,6 +21,7 @@ export interface IAnonymizedRepository {
accessToken?: string;
};
owner: string;
githubAccess?: RepositoryAccess;
coauthors?: {
username: string;
githubId?: string;