mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-20 06:37:23 +02:00
feat: add read-only GitHub App access alongside OAuth
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user